Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
adds an option to configure the phpstan timeout, see #28
I'm having issues building this locally though... I'm getting the following errors on full-tool-build.sh:
`[ERROR] Could not process "/var/www/html/vendor/symfony/console/Command/LockableTrait.php" file, due to:
"System error: "Scope not available on "PhpParser\Node\Stmt\Expression" node, but is required by a
refactorWithScope() method of "Rector\DowngradePhp80\Rector\Expression\DowngradeMatchToSwitchRector" rule. Fix
scope refresh on changed nodes first"
Run Rector with "--debug" option and post the report here: https://github.com/rectorphp/rector/issues/new". On line: 25
[ERROR] Could not process "/var/www/html/vendor/symfony/service-contracts/ServiceSubscriberTrait.php" file, due to:
"System error: "Scope not available on "PhpParser\Node\Stmt\Expression" node, but is required by a
refactorWithScope() method of "Rector\DowngradePhp80\Rector\Expression\DowngradeMatchToSwitchRector" rule. Fix
scope refresh on changed nodes first"
Run Rector with "--debug" option and post the report here: https://github.com/rectorphp/rector/issues/new". On line: 25
[ERROR] Could not process "/var/www/html/vendor/symfony/service-contracts/ServiceLocatorTrait.php" file, due to:
"System error: "Scope not available on "PhpParser\Node\Expr\Array_" node, but is required by a
refactorWithScope() method of "Rector\DowngradePhp81\Rector\Array_\DowngradeArraySpreadStringKeyRector" rule.
Fix scope refresh on changed nodes first"
Run Rector with "--debug" option and post the report here: https://github.com/rectorphp/rector/issues/new". On line: 25
[ERROR] Could not process "vendor/symfony/console/Tester/ApplicationTester.php" file, due to:
"Analyze error: "Class PHPStanBodyscan202407\Symfony\Component\Console\Tester\ApplicationTester was not found
while trying to analyse it - discovering symbols is probably not configured properly.". Include your files in
"$rectorConfig->autoloadPaths([...]);" or "$rectorConfig->bootstrapFiles([...]);" in "rector.php" config.
See https://github.com/rectorphp/rector#configuration".
[ERROR] Could not process "vendor/symfony/console/Tester/CommandTester.php" file, due to:
"Analyze error: "Class PHPStanBodyscan202407\Symfony\Component\Console\Tester\CommandTester was not found while
trying to analyse it - discovering symbols is probably not configured properly.". Include your files in
"$rectorConfig->autoloadPaths([...]);" or "$rectorConfig->bootstrapFiles([...]);" in "rector.php" config.
See https://github.com/rectorphp/rector#configuration".`
On executing the binary the following error occurs:
PHP Fatal error: Uncaught Error: Class "PHPStanBodyscan202407\Illuminate\Container\Container" not found in /var/www/html/src/DependencyInjection/ContainerFactory.php:17
Any idea?