Skip to content

Commit 16bb001

Browse files
committed
(chore): upgrade to PHPStan 2.x with baseline for PHP 8.4 query lib compatibility
1 parent e44c71a commit 16bb001

5 files changed

Lines changed: 720 additions & 10 deletions

File tree

.github/workflows/codeql-analysis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,4 @@ jobs:
3333
sed -i 's|\"symlink\": true|\"symlink\": false|' composer.json && \
3434
sed -i 's|\"url\": \"../query\"|\"url\": \"/query\"|' composer.lock && \
3535
composer install --profile --ignore-platform-reqs && \
36-
composer require --dev phpstan/phpstan:'^2.0' --ignore-platform-reqs --with-all-dependencies && \
3736
composer check"

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
],
3131
"lint": "php -d memory_limit=2G ./vendor/bin/pint --test",
3232
"format": "php -d memory_limit=2G ./vendor/bin/pint",
33-
"check": "./vendor/bin/phpstan analyse --level 7 src tests --memory-limit 2G",
33+
"check": "./vendor/bin/phpstan analyse --memory-limit 2G",
3434
"coverage": "./vendor/bin/coverage-check ./tmp/clover.xml 90"
3535
},
3636
"require": {
@@ -52,7 +52,7 @@
5252
"swoole/ide-helper": "5.1.3",
5353
"utopia-php/cli": "0.14.*",
5454
"laravel/pint": "*",
55-
"phpstan/phpstan": "1.*",
55+
"phpstan/phpstan": "^2.0",
5656
"rregeer/phpunit-coverage-check": "0.3.*"
5757
},
5858
"suggests": {

composer.lock

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)