Skip to content

Commit 24d1c89

Browse files
committed
Silence usage of deprecated ConstantStringType::isClassString
1 parent cc4554f commit 24d1c89

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

composer.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@
2929
"squizlabs/php_codesniffer": "^3.3",
3030
"symfony/phpunit-bridge": "^3.4.3 || ^4.4 || ^5.4 || ^6.0"
3131
},
32+
"conflict": {
33+
"phpstan/phpstan": "^1.10.0"
34+
},
3235
"minimum-stability": "dev",
3336
"prefer-stable": true,
3437
"suggest": {

src/Rules/Drupal/RenderCallbackRule.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,8 @@ private function getType(Node\Expr $node, Scope $scope): Type
221221
}
222222
}
223223
} elseif ($type instanceof ConstantStringType) {
224-
if (!$type->isClassStringType()->no()) {
224+
// @phpstan-ignore-next-line
225+
if (!$type->isClassString()) {
225226
return $type;
226227
}
227228
// Covers \Drupal\Core\Controller\ControllerResolver::createController.

0 commit comments

Comments
 (0)