Skip to content

Commit deb3871

Browse files
authored
Add phpstan/phpstan-deprecation-rules (#41)
* Add phpstan/phpstan-deprecation-rules * enable
1 parent b2bed47 commit deb3871

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@
2222
"require-dev": {
2323
"phpunit/phpunit": "^8 || ^9",
2424
"phpstan/phpstan": "^1.12 || ^2",
25-
"phpstan/phpstan-strict-rules": "^1 || ^2"
25+
"phpstan/phpstan-strict-rules": "^1 || ^2",
26+
"phpstan/phpstan-deprecation-rules": "^1 || ^2"
2627
},
2728
"conflict": {
2829
"phpstan/phpstan": "<1.11.10"

phpstan.neon.dist

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,5 @@ includes:
1717
- extension.neon
1818
- vendor/phpstan/phpstan/conf/bleedingEdge.neon
1919
- vendor/phpstan/phpstan-strict-rules/rules.neon
20+
- vendor/phpstan/phpstan-deprecation-rules/rules.neon
2021
- phpstan-baseline.neon

tests/BaseTestCase.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ protected function doExpectException(string $class, ?string $message = null): vo
3131

3232
protected function doExpectWarning(string $message): void
3333
{
34-
$this->expectWarning();
35-
$this->expectWarningMessage($message);
34+
$this->expectWarning(); // @phpstan-ignore method.deprecated
35+
$this->expectWarningMessage($message); // @phpstan-ignore method.deprecated
3636
}
3737

3838
protected function expectPcreEngineException(string $pattern): void

0 commit comments

Comments
 (0)