Skip to content

Allow nikic/php-parser ^5.0.0 #1434

Allow nikic/php-parser ^5.0.0

Allow nikic/php-parser ^5.0.0 #1434

Re-run triggered January 27, 2025 08:58
Status Failure
Total duration 2m 54s
Artifacts

psalm.yml

on: pull_request
Matrix: Static Analysis by Psalm
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 2 warnings
PossiblyFalseArgument: src/ComposerRequireChecker/ASTLocator/LocateASTFromFiles.php#L38
src/ComposerRequireChecker/ASTLocator/LocateASTFromFiles.php:38:47: PossiblyFalseArgument: Argument 1 of PhpParser\Parser::parse cannot be false, possibly string value expected (see https://psalm.dev/104)
MixedAssignment: src/ComposerRequireChecker/Cli/CheckCommand.php#L276
src/ComposerRequireChecker/Cli/CheckCommand.php:276:9: MixedAssignment: Unable to determine the type that $parser is being assigned to (see https://psalm.dev/032)
UndefinedMethod: src/ComposerRequireChecker/Cli/CheckCommand.php#L276
src/ComposerRequireChecker/Cli/CheckCommand.php:276:48: UndefinedMethod: Method PhpParser\ParserFactory::create does not exist (see https://psalm.dev/022)
UndefinedConstant: src/ComposerRequireChecker/Cli/CheckCommand.php#L276
src/ComposerRequireChecker/Cli/CheckCommand.php:276:55: UndefinedConstant: Constant PhpParser\ParserFactory::PREFER_PHP7 is not defined (see https://psalm.dev/020)
MixedArgument: src/ComposerRequireChecker/Cli/CheckCommand.php#L278
src/ComposerRequireChecker/Cli/CheckCommand.php:278:39: MixedArgument: Argument 1 of ComposerRequireChecker\ASTLocator\LocateASTFromFiles::__construct cannot be mixed, expecting PhpParser\Parser (see https://psalm.dev/030)
PossiblyFalseArgument: src/ComposerRequireChecker/DefinedExtensionsResolver/DefinedExtensionsResolver.php#L24
src/ComposerRequireChecker/DefinedExtensionsResolver/DefinedExtensionsResolver.php:24:33: PossiblyFalseArgument: Argument 1 of json_decode cannot be false, possibly string value expected (see https://psalm.dev/104)
PossiblyFalseArgument: test/ComposerRequireCheckerTest/Cli/OptionsTest.php#L64
test/ComposerRequireCheckerTest/Cli/OptionsTest.php:64:25: PossiblyFalseArgument: Argument 1 of json_decode cannot be false, possibly string value expected (see https://psalm.dev/104)
PossiblyFalseArgument: test/ComposerRequireCheckerTest/FileLocator/LocateComposerPackageDirectDependenciesSourceFilesTest.php#L66
test/ComposerRequireCheckerTest/FileLocator/LocateComposerPackageDirectDependenciesSourceFilesTest.php:66:71: PossiblyFalseArgument: Argument 3 of str_replace cannot be false, possibly array<array-key, float|int|string>|string value expected (see https://psalm.dev/104)
PossiblyFalseArgument: test/ComposerRequireCheckerTest/FileLocator/LocateComposerPackageDirectDependenciesSourceFilesTest.php#L92
test/ComposerRequireCheckerTest/FileLocator/LocateComposerPackageDirectDependenciesSourceFilesTest.php:92:71: PossiblyFalseArgument: Argument 3 of str_replace cannot be false, possibly array<array-key, float|int|string>|string value expected (see https://psalm.dev/104)
PossiblyFalseArgument: test/ComposerRequireCheckerTest/FileLocator/LocateComposerPackageDirectDependenciesSourceFilesTest.php#L107
test/ComposerRequireCheckerTest/FileLocator/LocateComposerPackageDirectDependenciesSourceFilesTest.php:107:71: PossiblyFalseArgument: Argument 3 of str_replace cannot be false, possibly array<array-key, float|int|string>|string value expected (see https://psalm.dev/104)
Static Analysis by Psalm (locked, 8.2, ubuntu-latest)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Static Analysis by Psalm (locked, 8.2, ubuntu-latest)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/