Skip to content

Commit 3c3ce3c

Browse files
committed
Upgrade PHPStan
1 parent 3df2481 commit 3c3ce3c

5 files changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ jobs:
5858

5959
- name: PHPStan
6060
run:
61-
vendor/bin/phpstan analyse -vvv
61+
vendor/bin/phpstan analyse --xdebug -vvv
6262

6363
- name: PHPUnit
6464
env:

.gitlab-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ test:php:
2626
- composer normalize --dry-run --indent-size=4 --indent-style=space
2727
- vendor/bin/php-cs-fixer fix --diff --dry-run --verbose
2828
- vendor/bin/phpmd src xml phpmd.xml
29-
- vendor/bin/phpstan analyse -vvv
29+
- vendor/bin/phpstan analyse --xdebug -vvv
3030
- vendor/bin/phpunit --colors=never
3131
- phpdoc
3232
artifacts:

ci-test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ commands=(
66
"composer normalize --dry-run --indent-size=4 --indent-style=space"
77
"vendor/bin/php-cs-fixer fix --diff --dry-run --verbose"
88
"vendor/bin/phpmd src xml phpmd.xml"
9-
"vendor/bin/phpstan analyse -vvv"
9+
"vendor/bin/phpstan analyse --xdebug -vvv"
1010
"vendor/bin/phpunit"
1111
"phpdoc"
1212
)

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
"ergebnis/composer-normalize": "^2.25",
4545
"jetbrains/phpstorm-attributes": "^1.0",
4646
"phpmd/phpmd": "^2.13",
47-
"phpstan/phpstan": "^1.5",
47+
"phpstan/phpstan": "^1.9",
4848
"phpunit/phpunit": "^9.5"
4949
},
5050
"minimum-stability": "dev",

tests/Debug/DatabaseCollectorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public function testActivities() : void
7777
'start',
7878
'end',
7979
],
80-
\array_keys($this->collector->getActivities()[0])
80+
\array_keys($this->collector->getActivities()[0]) // @phpstan-ignore-line
8181
);
8282
}
8383

0 commit comments

Comments
 (0)