Skip to content

Commit 99b58df

Browse files
committed
Update equality check to handle different toArray return signatures.
1 parent 7f83169 commit 99b58df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Matrix.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ public function getRowCount(): int
116116
*/
117117
public function equals(Matrix $matrix): bool
118118
{
119-
return $this->toArray() === $matrix->toArray();
119+
return $this->internal === $matrix->internal;
120120
}
121121

122122
/**

0 commit comments

Comments
 (0)