diff --git a/src/Processor/StopExecutionWhenProblemProcessor.php b/src/Processor/StopExecutionWhenProblemProcessor.php index c8e42d3..940ac9f 100644 --- a/src/Processor/StopExecutionWhenProblemProcessor.php +++ b/src/Processor/StopExecutionWhenProblemProcessor.php @@ -52,6 +52,7 @@ public function handler(array $record) $message = $record['message'] ?? 'no message'; $message .= PHP_EOL . (new Exception())->getTraceAsString(); fwrite(STDERR, PHP_EOL . __FILE__ . ':' . __LINE__ . ' : ' . $message . PHP_EOL); + exit(1); // trigger_error() вызвать нельзя, т.к. выполнится перехват хендлером, например \Symfony\Bridge\PhpUnit\DeprecationErrorHandler::handleError() } }