Skip to content

Commit

Permalink
support PHPStan 2.0 (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
jiripudil authored Nov 11, 2024
1 parent e0af3d9 commit 586d0fb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@
],
"require": {
"php": "^8.1",
"phpstan/phpstan": "^1.10"
"phpstan/phpstan": "^2.0"
},
"require-dev": {
"php-parallel-lint/php-parallel-lint": "^1.3",
"phpstan/phpstan-deprecation-rules": "^1.1",
"phpstan/extension-installer": "^1.3",
"phpstan/phpstan-phpunit": "^1.3",
"phpstan/phpstan-strict-rules": "^1.5",
"phpunit/phpunit": "^10.1 || ^11.4"
"php-parallel-lint/php-parallel-lint": "^1.4",
"phpstan/phpstan-deprecation-rules": "^2.0",
"phpstan/extension-installer": "^1.4",
"phpstan/phpstan-phpunit": "^2.0",
"phpstan/phpstan-strict-rules": "^2.0",
"phpunit/phpunit": "^10.5 || ^11.4"
},
"autoload": {
"psr-4": {
Expand Down
2 changes: 1 addition & 1 deletion src/SealedClassUtils.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public static function extractPermittedDescendants(
foreach ($permitsType->getConstantArrays() as $constantArray) {
foreach ($constantArray->getValueTypes() as $valueType) {
foreach ($valueType->getConstantStrings() as $constantString) {
if ( ! $constantString->isClassStringType()->yes()) {
if ( ! $constantString->isClassString()->yes()) {
continue;
}

Expand Down

0 comments on commit 586d0fb

Please sign in to comment.