Skip to content

Commit f2ecf02

Browse files
committed
Improved compatibility with PHPStan 1.0
1 parent bd74962 commit f2ecf02

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Type/Doctrine/QueryBuilder/QueryBuilderMethodDynamicReturnTypeExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ private function findQueryBuilderTypesInCalledMethod(Scope $scope, MethodCall $m
153153

154154
$methodReflection = $classReflection->getNativeMethod($methodName);
155155
$fileName = $methodReflection->getDeclaringClass()->getFileName();
156-
if ($fileName === false) {
156+
if ($fileName === null) {
157157
return [];
158158
}
159159

0 commit comments

Comments
 (0)