Skip to content

feat: Allow to configure the parser PHP version #1235

feat: Allow to configure the parser PHP version

feat: Allow to configure the parser PHP version #1235

Triggered via pull request June 15, 2024 10:12
Status Failure
Total duration 57s
Artifacts

lint.yaml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

13 errors and 3 warnings
PHPStan: src/Configuration/ConfigurationFactory.php#L101
Class Humbug\PhpScoper\Configuration\Configuration constructor invoked with 7 parameters, 8 required.
PHPStan: src/Configuration/ConfigurationFactory.php#L105
Parameter #4 $phpVersion of class Humbug\PhpScoper\Configuration\Configuration constructor expects PhpParser\PhpVersion|null, array<string, array<int, string>> given.
PHPStan: src/Configuration/ConfigurationFactory.php#L107
Parameter #6 $excludedFilesWithContents of class Humbug\PhpScoper\Configuration\Configuration constructor expects array<string, array{string, string}>, Humbug\PhpScoper\Patcher\PatcherChain given.
PHPStan: src/Configuration/ConfigurationFactory.php#L108
Parameter #7 $patcher of class Humbug\PhpScoper\Configuration\Configuration constructor expects Humbug\PhpScoper\Patcher\Patcher, Humbug\PhpScoper\Configuration\SymbolsConfiguration given.
PHPStan: src/Configuration/ConfigurationFactory.php#L221
Method Humbug\PhpScoper\Configuration\ConfigurationFactory::retrievePhpVersion() never returns PhpParser\PhpVersion so it can be removed from the return type.
PHPStan: src/Configuration/ConfigurationFactory.php#L221
PHPDoc tag @return with type string|null is not subtype of native type PhpParser\PhpVersion|null.
PHPStan: src/Configuration/ConfigurationFactory.php#L221
Static method Humbug\PhpScoper\Configuration\ConfigurationFactory::retrievePhpVersion() is unused.
PHPStan: src/Configuration/ConfigurationFactory.php#L233
Undefined variable: $patchers
PHPStan: src/Configuration/ConfigurationFactory.php#L237
Unreachable statement - code above always terminates.
PHPStan: src/Console/Application.php#L104
Parameter #2 $application of class Humbug\PhpScoper\Console\Command\AddPrefixCommand constructor expects Fidry\Console\Application\Application, Humbug\PhpScoper\Scoper\ScoperFactory given.
CS
Process completed with exit code 2.
Rector
Process completed with exit code 2.
Lint Status
Process completed with exit code 1.
PHPStan
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
CS
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Rector
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.