Skip to content

Commit d0bf4d3

Browse files
committed
deprecated isClassString removed in PHPStan 2.0
1 parent 24d1c89 commit d0bf4d3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"symfony/phpunit-bridge": "^3.4.3 || ^4.4 || ^5.4 || ^6.0"
3131
},
3232
"conflict": {
33-
"phpstan/phpstan": "^1.10.0"
33+
"phpstan/phpstan": "^2.0"
3434
},
3535
"minimum-stability": "dev",
3636
"prefer-stable": true,

src/Rules/Drupal/RenderCallbackRule.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ private function getType(Node\Expr $node, Scope $scope): Type
222222
}
223223
} elseif ($type instanceof ConstantStringType) {
224224
// @phpstan-ignore-next-line
225-
if (!$type->isClassString()) {
225+
if ($type->isClassString()) {
226226
return $type;
227227
}
228228
// Covers \Drupal\Core\Controller\ControllerResolver::createController.

0 commit comments

Comments
 (0)