Skip to content

Commit 7064813

Browse files
committed
Node\Scalar\Encapsed is now Node\Scalar\InterpolatedString.
1 parent 5674e99 commit 7064813

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/QueryReflection/QueryReflection.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
use PhpParser\Node\InterpolatedStringPart;
1111
use PhpParser\Node\Scalar\Encapsed;
1212
use PhpParser\Node\Scalar\EncapsedStringPart;
13+
use PhpParser\Node\Scalar\InterpolatedString;
1314
use PHPStan\Analyser\Scope;
1415
use PHPStan\ShouldNotHappenException;
1516
use PHPStan\TrinaryLogic;
@@ -370,7 +371,7 @@ private function resolveQueryStringExpr(Expr $queryExpr, Scope $scope, bool $res
370371
return $leftString . $rightString;
371372
}
372373

373-
if ($queryExpr instanceof Encapsed) {
374+
if ($queryExpr instanceof InterpolatedString) {
374375
$string = '';
375376
foreach ($queryExpr->parts as $part) {
376377
if ($part instanceof InterpolatedStringPart) {

0 commit comments

Comments
 (0)