ErrorException {#337 #severity: E_NOTICE }
*
* @phpstan-param FormattedRecord $record
*/
protected function streamWrite($stream, array $record): void
{
fwrite($stream, (string) $record['formatted']);
}
private function customErrorHandler(int $code, string $msg): bool
{
$this->errorMessage = preg_replace('{^(fopen|mkdir)\(.*?\): }', '', $msg);
if ($this->useLocking) {
// ignoring errors here, there's not much we can do about them
flock($stream, LOCK_EX);
}
$this->streamWrite($stream, $record);
if ($this->useLocking) {
flock($stream, LOCK_UN);
}
}
$record = $this->processRecord($record);
}
$record['formatted'] = $this->getFormatter()->format($record);
$this->write($record);
return false === $this->bubble;
}
/**
}
}
// once the record exists, send it to all handlers as long as the bubbling chain is not interrupted
try {
if (true === $handler->handle($record)) {
break;
}
} catch (Throwable $e) {
$this->handleException($e, $record);
$level = self::RFC_5424_LEVELS[$level];
}
$level = static::toMonologLevel($level);
$this->addRecord($level, (string) $message, $context);
}
/**
* Adds a log record at the DEBUG level.
*
foreach ($this->bootstrappingLogger->cleanLogs() as $log) {
$type = ThrowableUtils::getSeverity($log[2]['exception']);
if (!isset($flush[$type])) {
$this->bootstrappingLogger->log($log[0], $log[1], $log[2]);
} elseif ($this->loggers[$type][0]) {
$this->loggers[$type][0]->log($this->loggers[$type][1], $log[1], $log[2]);
}
}
}
return $prev;
$loggers[$type] = $log;
}
}
}
$this->setLoggers($loggers);
}
/**
* Sets a logger for each error level.
*
$handler->setDefaultLogger($this->deprecationLogger, $levelsDeprecatedOnly);
$defaultLoggerLevels = $levelsWithoutDeprecated;
}
if ($this->logger && $defaultLoggerLevels) {
$handler->setDefaultLogger($this->logger, $defaultLoggerLevels);
}
}
}
* Configures the error handler.
*/
public function configure(ErrorHandler $handler): void
{
if ($this->logger || $this->deprecationLogger) {
$this->setDefaultLoggers($handler);
if (\is_array($this->levels)) {
$levels = 0;
foreach ($this->levels as $type => $log) {
$levels |= $type;
}
// When upgrading an existing Symfony application from 6.2 to 6.3, and
// the cache is warmed up, the service is not available yet, so we need
// to check if it exists.
if ($this->container->has('debug.error_handler_configurator')) {
$this->container->get('debug.error_handler_configurator')->configure($handler);
}
if ($this->container->getParameter('kernel.http_method_override')) {
Request::enableHttpMethodParameterOverride();
}
$this->preBoot();
}
foreach ($this->getBundles() as $bundle) {
$bundle->setContainer($this->container);
$bundle->boot();
}
$this->booted = true;
}
if ($container->has('http_cache')) {
return $container->get('http_cache')->handle($request, $type, $catch);
}
}
$this->boot();
++$this->requestStackSize;
$this->resetServices = true;
try {
return $this->getHttpKernel()->handle($request, $type, $catch);
) {
}
public function run(): int
{
$response = $this->kernel->handle($this->request);
if (Kernel::VERSION_ID >= 60400) {
$response->send(false);
if (\function_exists('fastcgi_finish_request') && !$this->debug) {
$app = $app(...$args);
exit(
$runtime
->getRunner($app)
->run()
);
<?php
use App\Kernel;
require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
return function (array $context) {
return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
};
ErrorException
|
---|
ErrorException: Notice: fwrite(): Write of 811 bytes failed with errno=122 Disk quota exceeded at /home/latelierdsy/shop/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php:181 at Monolog\Handler\StreamHandler->streamWrite(resource, array('message' => 'User Deprecated: Method "Symfony\\Component\\HttpKernel\\Bundle\\Bundle::build()" might add "void" as a native return type declaration in the future. Do the same in child class "Bazinga\\Bundle\\HateoasBundle\\BazingaHateoasBundle" now to avoid errors or add an explicit @return annotation to suppress this message.', 'context' => array('exception' => object(ErrorException)), 'level' => 200, 'level_name' => 'INFO', 'channel' => 'php', 'datetime' => object(DateTimeImmutable), 'extra' => array(), 'formatted' => '[2024-03-28T14:57:25.317899+01:00] php.INFO: User Deprecated: Method "Symfony\\Component\\HttpKernel\\Bundle\\Bundle::build()" might add "void" as a native return type declaration in the future. Do the same in child class "Bazinga\\Bundle\\HateoasBundle\\BazingaHateoasBundle" now to avoid errors or add an explicit @return annotation to suppress this message. {"exception":"[object] (ErrorException(code: 0): User Deprecated: Method \\"Symfony\\\\Component\\\\HttpKernel\\\\Bundle\\\\Bundle::build()\\" might add \\"void\\" as a native return type declaration in the future. Do the same in child class \\"Bazinga\\\\Bundle\\\\HateoasBundle\\\\BazingaHateoasBundle\\" now to avoid errors or add an explicit @return annotation to suppress this message. at /home/latelierdsy/shop/vendor/symfony/error-handler/DebugClassLoader.php:337)"} []')) (/home/latelierdsy/shop/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php:165) at Monolog\Handler\StreamHandler->write(array('message' => 'User Deprecated: Method "Symfony\\Component\\HttpKernel\\Bundle\\Bundle::build()" might add "void" as a native return type declaration in the future. Do the same in child class "Bazinga\\Bundle\\HateoasBundle\\BazingaHateoasBundle" now to avoid errors or add an explicit @return annotation to suppress this message.', 'context' => array('exception' => object(ErrorException)), 'level' => 200, 'level_name' => 'INFO', 'channel' => 'php', 'datetime' => object(DateTimeImmutable), 'extra' => array(), 'formatted' => '[2024-03-28T14:57:25.317899+01:00] php.INFO: User Deprecated: Method "Symfony\\Component\\HttpKernel\\Bundle\\Bundle::build()" might add "void" as a native return type declaration in the future. Do the same in child class "Bazinga\\Bundle\\HateoasBundle\\BazingaHateoasBundle" now to avoid errors or add an explicit @return annotation to suppress this message. {"exception":"[object] (ErrorException(code: 0): User Deprecated: Method \\"Symfony\\\\Component\\\\HttpKernel\\\\Bundle\\\\Bundle::build()\\" might add \\"void\\" as a native return type declaration in the future. Do the same in child class \\"Bazinga\\\\Bundle\\\\HateoasBundle\\\\BazingaHateoasBundle\\" now to avoid errors or add an explicit @return annotation to suppress this message. at /home/latelierdsy/shop/vendor/symfony/error-handler/DebugClassLoader.php:337)"} []')) (/home/latelierdsy/shop/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php:48) at Monolog\Handler\AbstractProcessingHandler->handle(array('message' => 'User Deprecated: Method "Symfony\\Component\\HttpKernel\\Bundle\\Bundle::build()" might add "void" as a native return type declaration in the future. Do the same in child class "Bazinga\\Bundle\\HateoasBundle\\BazingaHateoasBundle" now to avoid errors or add an explicit @return annotation to suppress this message.', 'context' => array('exception' => object(ErrorException)), 'level' => 200, 'level_name' => 'INFO', 'channel' => 'php', 'datetime' => object(DateTimeImmutable), 'extra' => array(), 'formatted' => '[2024-03-28T14:57:25.317899+01:00] php.INFO: User Deprecated: Method "Symfony\\Component\\HttpKernel\\Bundle\\Bundle::build()" might add "void" as a native return type declaration in the future. Do the same in child class "Bazinga\\Bundle\\HateoasBundle\\BazingaHateoasBundle" now to avoid errors or add an explicit @return annotation to suppress this message. {"exception":"[object] (ErrorException(code: 0): User Deprecated: Method \\"Symfony\\\\Component\\\\HttpKernel\\\\Bundle\\\\Bundle::build()\\" might add \\"void\\" as a native return type declaration in the future. Do the same in child class \\"Bazinga\\\\Bundle\\\\HateoasBundle\\\\BazingaHateoasBundle\\" now to avoid errors or add an explicit @return annotation to suppress this message. at /home/latelierdsy/shop/vendor/symfony/error-handler/DebugClassLoader.php:337)"} []')) (/home/latelierdsy/shop/vendor/monolog/monolog/src/Monolog/Logger.php:399) at Monolog\Logger->addRecord(200, 'User Deprecated: Method "Symfony\\Component\\HttpKernel\\Bundle\\Bundle::build()" might add "void" as a native return type declaration in the future. Do the same in child class "Bazinga\\Bundle\\HateoasBundle\\BazingaHateoasBundle" now to avoid errors or add an explicit @return annotation to suppress this message.', array('exception' => object(ErrorException))) (/home/latelierdsy/shop/vendor/monolog/monolog/src/Monolog/Logger.php:585) at Monolog\Logger->log(200, 'User Deprecated: Method "Symfony\\Component\\HttpKernel\\Bundle\\Bundle::build()" might add "void" as a native return type declaration in the future. Do the same in child class "Bazinga\\Bundle\\HateoasBundle\\BazingaHateoasBundle" now to avoid errors or add an explicit @return annotation to suppress this message.', array('exception' => object(ErrorException))) (/home/latelierdsy/shop/vendor/symfony/error-handler/ErrorHandler.php:271) at Symfony\Component\ErrorHandler\ErrorHandler->setLoggers(array(array(object(Logger), 'info'), array(object(Logger), 'info'), array(object(Logger), 'warning'), array(object(Logger), 'warning'), array(object(Logger), 'warning'), array(object(Logger), 'warning'), array(object(Logger), 'warning'), array(object(Logger), 'warning'), array(object(Logger), 'warning'), array(object(Logger), 'critical'), array(object(Logger), 'critical'), array(object(Logger), 'critical'), array(object(Logger), 'critical'), array(object(Logger), 'critical'), array(object(Logger), 'critical'))) (/home/latelierdsy/shop/vendor/symfony/error-handler/ErrorHandler.php:225) at Symfony\Component\ErrorHandler\ErrorHandler->setDefaultLogger(object(Logger), 32767) (/home/latelierdsy/shop/vendor/symfony/http-kernel/Debug/ErrorHandlerConfigurator.php:104) at Symfony\Component\HttpKernel\Debug\ErrorHandlerConfigurator->setDefaultLoggers(object(ErrorHandler)) (/home/latelierdsy/shop/vendor/symfony/http-kernel/Debug/ErrorHandlerConfigurator.php:55) at Symfony\Component\HttpKernel\Debug\ErrorHandlerConfigurator->configure(object(ErrorHandler)) (/home/latelierdsy/shop/vendor/symfony/framework-bundle/FrameworkBundle.php:108) at Symfony\Bundle\FrameworkBundle\FrameworkBundle->boot() (/home/latelierdsy/shop/vendor/symfony/http-kernel/Kernel.php:131) at Symfony\Component\HttpKernel\Kernel->boot() (/home/latelierdsy/shop/vendor/symfony/http-kernel/Kernel.php:192) at Symfony\Component\HttpKernel\Kernel->handle(object(Request)) (/home/latelierdsy/shop/vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:35) at Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run() (/home/latelierdsy/shop/vendor/autoload_runtime.php:29) at require_once('/home/latelierdsy/shop/vendor/autoload_runtime.php') (/home/latelierdsy/shop/public/index.php:5) |