Skip to content

Commit 1b2eeda

Browse files
committed
ci: Check deprecations with PHPStan
Keeping the code future proof.
1 parent 4427e8e commit 1b2eeda

File tree

3 files changed

+52
-1
lines changed

3 files changed

+52
-1
lines changed

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
"friendsofphp/php-cs-fixer": "^3.0",
3434
"php-parallel-lint/php-parallel-lint": "^1.0",
3535
"phpstan/phpstan": "^2.0",
36+
"phpstan/phpstan-deprecation-rules": "^2.0",
3637
"symfony/phpunit-bridge": "^7.0"
3738
},
3839
"license": "GPL-3.0",

composer.lock

Lines changed: 48 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: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,6 @@ parameters:
2727
typeAliases:
2828
SpoutParameterInfo: 'array{title: string, type: spouts\Parameter::TYPE_*, default: string, required: bool, validation: array<spouts\Parameter::VALIDATION_*>, values?: array<string, string>}'
2929
SpoutParameters: 'array<string, SpoutParameterInfo>'
30+
31+
includes:
32+
- vendor/phpstan/phpstan-deprecation-rules/rules.neon

0 commit comments

Comments
 (0)