Report UndefinedFunction/Method correctly if analyzed PHP version is older than currently used PHP version #12935
Annotations
7 errors
UndefinedMethod:
src/Psalm/Internal/Codebase/Reflection.php#L473
src/Psalm/Internal/Codebase/Reflection.php:473:39: UndefinedMethod: Method ReflectionUnionType::getTypes does not exist (see https://psalm.dev/022)
|
TooManyArguments:
tests/Config/ConfigTest.php#L222
tests/Config/ConfigTest.php:222:23: TooManyArguments: Too many arguments for ErrorException::__construct - expecting 3 but saw 5 (see https://psalm.dev/026)
|
InvalidArgument:
tests/Config/ConfigTest.php#L225
tests/Config/ConfigTest.php:225:21: InvalidArgument: Argument 3 of ErrorException::__construct expects Throwable|null, but int provided (see https://psalm.dev/004)
|
UndefinedMethod:
tests/Internal/Codebase/InternalCallMapHandlerTest.php#L630
tests/Internal/Codebase/InternalCallMapHandlerTest.php:630:40: UndefinedMethod: Method ReflectionFunctionAbstract::hasTentativeReturnType does not exist (see https://psalm.dev/022)
|
UndefinedMethod:
tests/Internal/Codebase/InternalCallMapHandlerTest.php#L630
tests/Internal/Codebase/InternalCallMapHandlerTest.php:630:78: UndefinedMethod: Method ReflectionFunctionAbstract::getTentativeReturnType does not exist (see https://psalm.dev/022)
|
UndefinedFunction:
tests/Internal/Codebase/InternalCallMapHandlerTest.php#L655
tests/Internal/Codebase/InternalCallMapHandlerTest.php:655:21: UndefinedFunction: Function enum_exists does not exist (see https://psalm.dev/021)
|
build
Process completed with exit code 2.
|