mirror of
				https://github.com/furyfire/trueskill.git
				synced 2025-11-04 10:12:28 +01:00 
			
		
		
		
	More type work
This commit is contained in:
		@@ -298,7 +298,7 @@ class Matrix
 | 
			
		||||
        return new Matrix($this->rowCount - 1, $this->columnCount - 1, $result);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public function getCofactor($rowToRemove, $columnToRemove)
 | 
			
		||||
    public function getCofactor(int $rowToRemove, int $columnToRemove): float
 | 
			
		||||
    {
 | 
			
		||||
        // See http://en.wikipedia.org/wiki/Cofactor_(linear_algebra) for details
 | 
			
		||||
        // REVIEW: should things be reversed since I'm 0 indexed?
 | 
			
		||||
@@ -312,7 +312,7 @@ class Matrix
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public function equals($otherMatrix)
 | 
			
		||||
    public function equals(Matrix $otherMatrix): bool
 | 
			
		||||
    {
 | 
			
		||||
        // If one is null, but not both, return false.
 | 
			
		||||
        if ($otherMatrix == null) {
 | 
			
		||||
 
 | 
			
		||||
@@ -33,17 +33,17 @@ class Range
 | 
			
		||||
 | 
			
		||||
    // REVIEW: It's probably bad form to have access statics via a derived class, but the syntax looks better :-)
 | 
			
		||||
 | 
			
		||||
    public static function inclusive(int $min, int $max): self
 | 
			
		||||
    public static function inclusive(int $min, int $max): static
 | 
			
		||||
    {
 | 
			
		||||
        return static::create($min, $max);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public static function exactly(int $value): self
 | 
			
		||||
    public static function exactly(int $value): static
 | 
			
		||||
    {
 | 
			
		||||
        return static::create($value, $value);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public static function atLeast(int $minimumValue): self
 | 
			
		||||
    public static function atLeast(int $minimumValue): static
 | 
			
		||||
    {
 | 
			
		||||
        return static::create($minimumValue, PHP_INT_MAX);
 | 
			
		||||
    }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user