You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Prints the exceptions that AutoloadFunctionsSourceLocator swallows from autoloaders registered
* by bootstrapFiles. BootstrapFilesRunner enables it with --debug, where the analysis runs in the
* main process. The class is then reported as not found, and this keeps the autoloader's reason.
*/
#[AutowiredService]
final class BootstrapAutoloaderExceptionReporter
{
private ?Output $output = null;
public function enable(Output $output): void
{
$this->output = $output;
}
public function report(string $className, Throwable $e): void
{
if ($this->output === null) {
return;
}
$this->output->writeLineFormatted(sprintf('%s thrown in %s on line %d by a bootstrap autoloader for class %s: %s', get_class($e), $e->getFile(), $e->getLine(), $className, $e->getMessage()));