Symfony\Component\ErrorHandler\Error\FatalError {#589 -error: array:4 [ "type" => 64 "message" => "Cannot re-assign $this" "file" => "/home/invertor/invertor.nichost.ru/docs/plugins/system/strict404/strict404.php" "line" => 77 ] }
// Подключаем error.php с $errorDoc как $this
$self = $errorDoc;
(static function () use ($templateErrorPath, $self) {
// Внутри анонимной функции $this = $self
$this = $self;
include $templateErrorPath;
})();
// Завершаем выполнение
$app->close();
FatalError
|
---|
Symfony\Component\ErrorHandler\Error\FatalError: Compile Error: Cannot re-assign $this at /home/invertor/invertor.nichost.ru/docs/plugins/system/strict404/strict404.php:77 |