Skip to content

Commit

Permalink
Enhancement: Add support for phpstan/phpstan:^2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
localheinz committed Dec 1, 2024
1 parent 2769247 commit a09fe88
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 36 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

For a full diff see [`2.5.0...main`][2.5.0...main].

### Added

- Added support for `phpstan/phpstan:^2.0.0` ([#872]), by [@localheinz]

## [`2.5.0`][2.5.0]

For a full diff see [`2.4.0...2.5.0`][2.4.0...2.5.0].
Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"require": {
"php": "~7.4.0 || ~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0",
"ext-mbstring": "*",
"phpstan/phpstan": "^1.10.21"
"phpstan/phpstan": "^2.0.0"
},
"require-dev": {
"doctrine/orm": "^2.20.0 || ^3.3.0",
Expand All @@ -33,8 +33,8 @@
"ergebnis/phpunit-slow-test-detector": "^2.17.0",
"nette/di": "^3.1.10",
"nikic/php-parser": "^4.19.4",
"phpstan/phpstan-deprecation-rules": "^1.2.1",
"phpstan/phpstan-strict-rules": "^1.6.1",
"phpstan/phpstan-deprecation-rules": "^2.0.1",
"phpstan/phpstan-strict-rules": "^2.0.0",
"phpunit/phpunit": "^9.6.21",
"psr/container": "^2.0.2",
"symfony/process": "^5.4.47"
Expand Down
57 changes: 28 additions & 29 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 20 additions & 4 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
@@ -1,22 +1,38 @@
parameters:
ignoreErrors:
-
message: "#^Language construct isset\\(\\) should not be used\\.$#"
message: '#^Language construct isset\(\) should not be used\.$#'
identifier: ergebnis.noIsset
count: 1
path: src/Classes/FinalRule.php

-
message: "#^Language construct isset\\(\\) should not be used\\.$#"
message: '#^Language construct isset\(\) should not be used\.$#'
identifier: ergebnis.noIsset
count: 1
path: src/Classes/NoExtendsRule.php

-
message: "#^Language construct isset\\(\\) should not be used\\.$#"
message: '#^Language construct isset\(\) should not be used\.$#'
identifier: ergebnis.noIsset
count: 1
path: src/Classes/PHPUnit/Framework/TestCaseWithSuffixRule.php

-
message: "#^Language construct isset\\(\\) should not be used\\.$#"
message: '#^Language construct isset\(\) should not be used\.$#'
identifier: ergebnis.noIsset
count: 1
path: src/Functions/NoNullableReturnTypeDeclarationRule.php

-
message: '#^Method Ergebnis\\PHPStan\\Rules\\Methods\\NoConstructorParameterWithDefaultValueRule\:\:processNode\(\) should return list\<PHPStan\\Rules\\IdentifierRuleError\> but returns non\-empty\-list\<non\-falsy\-string\>\.$#'
identifier: return.type
count: 1
path: src/Methods/NoConstructorParameterWithDefaultValueRule.php

-
message: '#^Method Ergebnis\\PHPStan\\Rules\\Methods\\NoParameterWithContainerTypeDeclarationRule\:\:processNode\(\) should return list\<PHPStan\\Rules\\IdentifierRuleError\> but returns array\.$#'
identifier: return.type
count: 1
path: src/Methods/NoParameterWithContainerTypeDeclarationRule.php

0 comments on commit a09fe88

Please sign in to comment.