File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -5727,15 +5727,15 @@ public function getIterableValueType(Type $iteratee): Type
57275727
57285728 public function getPhpVersion (): PhpVersions
57295729 {
5730- $ versionExpr = new ConstFetch ( new Name ('PHP_VERSION_ID ' ) );
5731- if (!$ this ->hasExpressionType ( $ versionExpr )-> yes ( )) {
5730+ $ name = new Name ('PHP_VERSION_ID ' );
5731+ if (!$ this ->hasConstant ( $ name )) {
57325732 if (is_array ($ this ->configPhpVersion )) {
57335733 return new PhpVersions (IntegerRangeType::fromInterval ($ this ->configPhpVersion ['min ' ], $ this ->configPhpVersion ['max ' ]));
57345734 }
57355735 return new PhpVersions (new ConstantIntegerType ($ this ->phpVersion ->getVersionId ()));
57365736 }
57375737
5738- return new PhpVersions ($ this ->getType ($ versionExpr ));
5738+ return new PhpVersions ($ this ->getType (new ConstFetch ( $ name ) ));
57395739 }
57405740
57415741}
You can’t perform that action at this time.
0 commit comments