From 3c020ed0e0daa22b9c69cb4356ff83637169299a Mon Sep 17 00:00:00 2001 From: Christophe Coevoet Date: Mon, 3 Mar 2025 13:04:08 +0100 Subject: [PATCH] Improve the documentation of php_errors in the reference --- reference/configuration/framework.rst | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/reference/configuration/framework.rst b/reference/configuration/framework.rst index 0f336953539..44c5f9b4c46 100644 --- a/reference/configuration/framework.rst +++ b/reference/configuration/framework.rst @@ -3062,11 +3062,15 @@ php_errors log ... -**type**: ``boolean|int`` **default**: ``%kernel.debug%`` +**type**: ``boolean|int|array`` **default**: ``%kernel.debug%`` Use the application logger instead of the PHP logger for logging PHP errors. -When an integer value is used, it also sets the log level. Those integer -values must be the same used in the `error_reporting PHP option`_. +When an integer value is used, it defines a bitmask of PHP errors that will +be logged. Those integer values must be the same used in the +`error_reporting PHP option`_. The default log levels will be used for each +PHP error. +When a boolean value is used, ``true`` enables logging for all PHP errors +while ``false`` disables logging entirely. This option also accepts a map of PHP errors to log levels: