diff --git a/Math/Matrix/Matrix.php b/Math/Matrix/Matrix.php index 2f512ced2..7c3d6b962 100644 --- a/Math/Matrix/Matrix.php +++ b/Math/Matrix/Matrix.php @@ -767,7 +767,7 @@ class Matrix implements \ArrayAccess, \Iterator */ public function valid() { - $this->offsetExists($this->position); + return $this->offsetExists($this->position); } /**