Skip to content

Commit 65723d2

Browse files
committed
chore: Activate phpstan strict rules
1 parent 22da598 commit 65723d2

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

composer.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,15 @@
1313
"php": "^8.2"
1414
},
1515
"require-dev": {
16-
"brainbits/phpcs-standard": "^7.0",
16+
"brainbits/phpcs-standard": "^7.0.1",
17+
"brainbits/phpstan-rules": "^3.1.2",
1718
"ergebnis/phpstan-rules": "^2.2.0",
1819
"thecodingmachine/phpstan-safe-rule": "^1.2.0",
1920
"thecodingmachine/phpstan-strict-rules": "^1.0.0",
20-
"phpstan/phpstan-phpunit": "^1.3.15",
21+
"phpstan/phpstan-phpunit": "^1.3.16",
2122
"squizlabs/php_codesniffer": "^3.9.0",
22-
"phpstan/phpstan": "^1.10.58",
23+
"phpstan/phpstan": "^1.10.59",
24+
"phpstan/phpstan-strict-rules": "^1.5.2",
2325
"phpunit/phpunit": "^11.0.3",
2426
"rector/rector": "^1.0.1"
2527
},

phpstan.neon.dist

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,16 @@ parameters:
99
- '#has a nullable return type declaration#'
1010
- '#has parameter .+ with a nullable type declaration#'
1111
- '#has parameter .+ with null as default value#'
12+
- '#PHPUnit\\Framework\\Assert::assert.+\(\) .* will always evaluate to true#'
1213
ergebnis:
1314
noExtends:
1415
classesAllowedToBeExtended:
1516
- InvalidArgumentException
1617

1718
includes:
18-
# - vendor/brainbits/phpstan-rules/rules.neon
19+
- vendor/brainbits/phpstan-rules/rules.neon
1920
- vendor/ergebnis/phpstan-rules/rules.neon
2021
- vendor/phpstan/phpstan-phpunit/extension.neon
2122
- vendor/phpstan/phpstan-phpunit/rules.neon
23+
- vendor/phpstan/phpstan-strict-rules/rules.neon
2224
- vendor/thecodingmachine/phpstan-strict-rules/phpstan-strict-rules.neon

0 commit comments

Comments
 (0)