Phpstan fixes

This commit is contained in:
Dennis Eichhorn 2018-03-30 13:32:15 +02:00
parent f23734464d
commit d9c7bd0b50
5 changed files with 7 additions and 7 deletions

View File

@ -501,7 +501,7 @@ class Matrix implements \ArrayAccess, \Iterator
*/ */
public function inverse(int $algorithm = InverseType::GAUSS_JORDAN) : Matrix public function inverse(int $algorithm = InverseType::GAUSS_JORDAN) : Matrix
{ {
return $this->solve(new IdentityMatrix($this->m, $this->m)); return $this->solve(new IdentityMatrix($this->m));
} }
/** /**

View File

@ -143,7 +143,7 @@ class Complex
*/ */
public function square() : Complex public function square() : Complex
{ {
return $this->multComplex($this, $this); return $this->multComplex($this);
} }
public function pow($value) : Complex public function pow($value) : Complex

View File

@ -175,8 +175,8 @@ class MeasureOfDispersion
* *
* @param array $x Values * @param array $x Values
* @param array $y Values * @param array $y Values
* @param array $meanX Mean * @param float $meanX Mean
* @param array $meanY Mean * @param float $meanY Mean
* *
* @return float * @return float
* *

View File

@ -121,8 +121,8 @@ class PhpCode
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public static function validateFileIntegrity(string $source, string $hash) : array public static function validateFileIntegrity(string $source, string $hash) : bool
{ {
return true;
} }
} }

View File

@ -41,7 +41,7 @@ class Header implements \Serializable
/** /**
* Packet type. * Packet type.
* *
* @var \phpOMS\Socket\Packets\PacketType * @var int
* @since 1.0.0 * @since 1.0.0
*/ */
private $type = 0; private $type = 0;