Skip to content

Commit cc4554f

Browse files
committed
fix usage of isClassString
1 parent 9315cf7 commit cc4554f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Rules/Drupal/RenderCallbackRule.php

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

0 commit comments

Comments
 (0)