Skip to content

Report UndefinedFunction/Method correctly if analyzed PHP version is older than currently used PHP version #12935

Report UndefinedFunction/Method correctly if analyzed PHP version is older than currently used PHP version

Report UndefinedFunction/Method correctly if analyzed PHP version is older than currently used PHP version #12935

Triggered via pull request March 2, 2024 22:02
Status Failure
Total duration 59s
Artifacts

shepherd.yml

on: pull_request
Fit to window
Zoom out
Zoom in

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.