|
@@ -97,7 +97,7 @@ discard block |
|
|
block discarded – undo |
|
97
|
97
|
|
|
98
|
98
|
$routeConfigurators = []; |
|
99
|
99
|
if (empty($method) === false && empty($path) === false) { |
|
100
|
|
- list(, , , , , $routeConfigurators) = $this->initRouter($coreSettings)->match($method, $path); |
|
|
100
|
+ list(,,,,, $routeConfigurators) = $this->initRouter($coreSettings)->match($method, $path); |
|
101
|
101
|
} |
|
102
|
102
|
|
|
103
|
103
|
// configure container |
|
@@ -210,7 +210,7 @@ discard block |
|
|
block discarded – undo |
|
210
|
210
|
*/ |
|
211
|
211
|
protected function createThrowableHandler(SapiInterface $sapi, PsrContainerInterface $container): Closure |
|
212
|
212
|
{ |
|
213
|
|
- return function (Throwable $throwable) use ($sapi, $container) { |
|
|
213
|
+ return function(Throwable $throwable) use ($sapi, $container) { |
|
214
|
214
|
$handler = $this->createExceptionHandler($container); |
|
215
|
215
|
$handler->handleThrowable($throwable, $sapi, $container); |
|
216
|
216
|
}; |
|
@@ -224,7 +224,7 @@ discard block |
|
|
block discarded – undo |
|
224
|
224
|
*/ |
|
225
|
225
|
protected function createErrorHandler(SapiInterface $sapi, PsrContainerInterface $container): Closure |
|
226
|
226
|
{ |
|
227
|
|
- return function ($severity, $message, $fileName, $lineNumber) use ($sapi, $container) { |
|
|
227
|
+ return function($severity, $message, $fileName, $lineNumber) use ($sapi, $container) { |
|
228
|
228
|
$errorException = new ErrorException($message, 0, $severity, $fileName, $lineNumber); |
|
229
|
229
|
$handler = $this->createThrowableHandler($sapi, $container); |
|
230
|
230
|
$handler($errorException); |
|
@@ -239,7 +239,7 @@ discard block |
|
|
block discarded – undo |
|
239
|
239
|
*/ |
|
240
|
240
|
protected function createFatalErrorHandler(PsrContainerInterface $container): Closure |
|
241
|
241
|
{ |
|
242
|
|
- return function () use ($container) { |
|
|
242
|
+ return function() use ($container) { |
|
243
|
243
|
$error = $this->getLastError(); |
|
244
|
244
|
if ($error !== null && ((int)$error['type'] & (E_ERROR | E_COMPILE_ERROR))) { |
|
245
|
245
|
$handler = $this->createExceptionHandler($container); |