Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
CloCkWeRX committed Nov 4, 2015
1 parent 5d87bdf commit c8661b7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Math/Matrix.php
Expand Up @@ -1163,7 +1163,8 @@ function multiply(&$B) {
* @throws InvalidArgumentException
*/
function &vectorMultiply(&$v1) {
if (!Math_VectorOp::isVector($v1)) {
$validator = new Math_VectorOp();
if (!$validator->isVector($v1)) {
throw new InvalidArgumentException("Wrong parameter, a Math_Vector object");
}
list($nr, $nc) = $this->getSize();
Expand Down

0 comments on commit c8661b7

Please sign in to comment.