Skip to content

Commit da720f2

Browse files
committed
532: add phpstan rule for safe
1 parent 4d5fec3 commit da720f2

3 files changed

Lines changed: 62 additions & 2 deletions

File tree

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@
4949
"phpstan/phpstan": "^2.1.46",
5050
"phpstan/phpstan-phpunit": "^2.0.16",
5151
"phpstan/phpstan-webmozart-assert": "^2.0",
52-
"phpunit/phpunit": "^10.5.63"
52+
"phpunit/phpunit": "^10.5.63",
53+
"thecodingmachine/phpstan-safe-rule": "^1.4"
5354
},
5455
"replace": {
5556
"symfony/polyfill-php81": "*",

composer.lock

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

phpstan.neon

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ includes:
33
- vendor/bnf/phpstan-psr-container/extension.neon
44
- vendor/phpstan/phpstan-webmozart-assert/extension.neon
55
- vendor/phpstan/phpstan-phpunit/extension.neon
6+
- vendor/thecodingmachine/phpstan-safe-rule/phpstan-safe-rule.neon
67

78
parameters:
89
level: 10

0 commit comments

Comments
 (0)