Skip to content

feat: Allow to configure the parser PHP version #1245

feat: Allow to configure the parser PHP version

feat: Allow to configure the parser PHP version #1245

Triggered via pull request June 16, 2024 13:39
Status Failure
Total duration 47s
Artifacts

lint.yaml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

11 errors and 3 warnings
PHPStan: src/Configuration/ConfigurationFactory.php#L98
Class Humbug\PhpScoper\Configuration\Configuration constructor invoked with 7 parameters, 8 required.
PHPStan: src/Configuration/ConfigurationFactory.php#L102
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#L104
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#L105
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#L186
Method Humbug\PhpScoper\Configuration\ConfigurationFactory::retrievePhpVersion() never returns PhpParser\PhpVersion so it can be removed from the return type.
PHPStan: src/Configuration/ConfigurationFactory.php#L186
PHPDoc tag @return with type string|null is not subtype of native type PhpParser\PhpVersion|null.
PHPStan: src/Configuration/ConfigurationFactory.php#L186
Static method Humbug\PhpScoper\Configuration\ConfigurationFactory::retrievePhpVersion() is unused.
PHPStan: src/Configuration/ConfigurationFactory.php#L198
Undefined variable: $patchers
PHPStan: src/Configuration/ConfigurationFactory.php#L202
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\Factory\ScoperFactory given.
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/.
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/.
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/.