Skip to content

Commit

Permalink
Add BOOTSTRAP_FILES hint to AutoloadExceptionMessage (#1236)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-schranz committed Nov 14, 2021
1 parent aebfb39 commit 8c31c3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Error/ExceptionCorrector.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function matchRectorClass(Throwable $throwable): ?string
public function getAutoloadExceptionMessageAndAddLocation(AnalysedCodeException $analysedCodeException): string
{
return sprintf(
'Analyze error: "%s". Include your files in "$parameters->set(Option::AUTOLOAD_PATHS, [...]);" in "rector.php" config.%sSee https://github.com/rectorphp/rector#configuration',
'Analyze error: "%s". Include your files in "$parameters->set(Option::AUTOLOAD_PATHS, [...]);" or "$parameters->set(Option::BOOTSTRAP_FILES, [...]);" in "rector.php" config.%sSee https://github.com/rectorphp/rector#configuration',
$analysedCodeException->getMessage(),
PHP_EOL
);
Expand Down

0 comments on commit 8c31c3a

Please sign in to comment.