Skip to content

Commit d439aaa

Browse files
committed
Matrix: implement generic ArrayAccess for phpstan
1 parent 197cfab commit d439aaa

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Matrix.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@
2727
use function max;
2828
use function substr;
2929

30+
/**
31+
* @phpstan-implements \ArrayAccess<int, float[]>
32+
*/
3033
class Matrix implements \ArrayAccess{
3134
/** @var float[][] */
3235
private $matrix = [];

0 commit comments

Comments
 (0)