@@ -851,6 +851,7 @@ private static function resizeMatricesExtend(array &$matrix1, array &$matrix2, i
851
851
if (($ matrix2Columns < $ matrix1Columns ) || ($ matrix2Rows < $ matrix1Rows )) {
852
852
if ($ matrix2Columns < $ matrix1Columns ) {
853
853
for ($ i = 0 ; $ i < $ matrix2Rows ; ++$ i ) {
854
+ /** @var mixed[][] $matrix2 */
854
855
$ x = ($ matrix2Columns === 1 ) ? $ matrix2 [$ i ][0 ] : null ;
855
856
for ($ j = $ matrix2Columns ; $ j < $ matrix1Columns ; ++$ j ) {
856
857
$ matrix2 [$ i ][$ j ] = $ x ;
@@ -868,6 +869,7 @@ private static function resizeMatricesExtend(array &$matrix1, array &$matrix2, i
868
869
if (($ matrix1Columns < $ matrix2Columns ) || ($ matrix1Rows < $ matrix2Rows )) {
869
870
if ($ matrix1Columns < $ matrix2Columns ) {
870
871
for ($ i = 0 ; $ i < $ matrix1Rows ; ++$ i ) {
872
+ /** @var mixed[][] $matrix1 */
871
873
$ x = ($ matrix1Columns === 1 ) ? $ matrix1 [$ i ][0 ] : null ;
872
874
for ($ j = $ matrix1Columns ; $ j < $ matrix2Columns ; ++$ j ) {
873
875
$ matrix1 [$ i ][$ j ] = $ x ;
@@ -2372,13 +2374,15 @@ private function executeNumericBinaryOperation(mixed $operand1, mixed $operand2,
2372
2374
2373
2375
for ($ row = 0 ; $ row < $ rows ; ++$ row ) {
2374
2376
for ($ column = 0 ; $ column < $ columns ; ++$ column ) {
2377
+ /** @var mixed[][] $operand1 */
2375
2378
if (($ operand1 [$ row ][$ column ] ?? null ) === null ) {
2376
2379
$ operand1 [$ row ][$ column ] = 0 ;
2377
2380
} elseif (!self ::isNumericOrBool ($ operand1 [$ row ][$ column ])) {
2378
2381
$ operand1 [$ row ][$ column ] = self ::makeError ($ operand1 [$ row ][$ column ]);
2379
2382
2380
2383
continue ;
2381
2384
}
2385
+ /** @var mixed[][] $operand2 */
2382
2386
if (($ operand2 [$ row ][$ column ] ?? null ) === null ) {
2383
2387
$ operand2 [$ row ][$ column ] = 0 ;
2384
2388
} elseif (!self ::isNumericOrBool ($ operand2 [$ row ][$ column ])) {
0 commit comments