Skip to content

Commit

Permalink
Add phpstan/phpstan-deprecation-rules (#41)
Browse files Browse the repository at this point in the history
* Add phpstan/phpstan-deprecation-rules

* enable
  • Loading branch information
staabm authored Nov 20, 2024
1 parent b2bed47 commit deb3871
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
"require-dev": {
"phpunit/phpunit": "^8 || ^9",
"phpstan/phpstan": "^1.12 || ^2",
"phpstan/phpstan-strict-rules": "^1 || ^2"
"phpstan/phpstan-strict-rules": "^1 || ^2",
"phpstan/phpstan-deprecation-rules": "^1 || ^2"
},
"conflict": {
"phpstan/phpstan": "<1.11.10"
Expand Down
1 change: 1 addition & 0 deletions phpstan.neon.dist
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,5 @@ includes:
- extension.neon
- vendor/phpstan/phpstan/conf/bleedingEdge.neon
- vendor/phpstan/phpstan-strict-rules/rules.neon
- vendor/phpstan/phpstan-deprecation-rules/rules.neon
- phpstan-baseline.neon
4 changes: 2 additions & 2 deletions tests/BaseTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ protected function doExpectException(string $class, ?string $message = null): vo

protected function doExpectWarning(string $message): void
{
$this->expectWarning();
$this->expectWarningMessage($message);
$this->expectWarning(); // @phpstan-ignore method.deprecated
$this->expectWarningMessage($message); // @phpstan-ignore method.deprecated
}

protected function expectPcreEngineException(string $pattern): void
Expand Down

0 comments on commit deb3871

Please sign in to comment.