Skip to content

Commit 88b89ca

Browse files
committed
Static analysis changes.
1 parent 67a3f19 commit 88b89ca

File tree

5 files changed

+4
-6
lines changed

5 files changed

+4
-6
lines changed

.github/workflows/test_develop_and_master.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ jobs:
6363
runs-on: ubuntu-latest
6464
strategy:
6565
matrix:
66-
php: ['7.2']
66+
php: ['8.4']
6767

6868
steps:
6969
- name: Set up PHP

.github/workflows/test_other_branches.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ jobs:
6262
runs-on: ubuntu-latest
6363
strategy:
6464
matrix:
65-
php: ['7.4']
65+
php: ['8.4']
6666

6767
steps:
6868
- name: Set up PHP

.github/workflows/test_pull_request.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959
runs-on: ubuntu-latest
6060
strategy:
6161
matrix:
62-
php: ['7.2']
62+
php: ['8.4']
6363

6464
steps:
6565
- name: Set up PHP

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ style :
1212
vendor/bin/phpcs --standard=tests/coding_standard.xml --ignore=vendor -s .
1313

1414
phpstan :
15-
vendor/bin/phpstan analyze -c tests/phpstan.neon
15+
vendor/bin/phpstan analyze -c tests/phpstan.neon --memory-limit 1G
1616

1717
phpmd :
1818
vendor/bin/phpmd src/ ansi cleancode,codesize,design,unusedcode,naming

src/LinearAlgebra/NumericMatrix.php

-2
Original file line numberDiff line numberDiff line change
@@ -1283,13 +1283,11 @@ public function multiply($B): NumericMatrix
12831283
$R[$i] = \array_fill(0, $B->n, 0);
12841284
foreach ($Bᵀ as $j => $Bᶜᵒˡ⟦j⟧) {
12851285
foreach ($Aʳᵒʷ⟦i⟧ as $k => $A⟦i⟧⟦k⟧) {
1286-
// @phpstan-ignore-next-line (Remove in PHP 8.0, no longer returns false)
12871286
$R[$i][$j] += $A⟦i⟧⟦k⟧ * $Bᶜᵒˡ⟦j⟧[$k];
12881287
}
12891288
}
12901289
}
12911290

1292-
// @phpstan-ignore-next-line (Due to above false from array_fill)
12931291
return MatrixFactory::createNumeric($R, $this->ε);
12941292
}
12951293

0 commit comments

Comments
 (0)