Skip to content

Commit aad900e

Browse files
committed
minor #20710 Improve the documentation of php_errors in the reference (stof)
This PR was merged into the 6.4 branch. Discussion ---------- Improve the documentation of php_errors in the reference <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/releases for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `7.x` for features of unreleased versions). --> Commits ------- 3c020ed Improve the documentation of php_errors in the reference
2 parents 3e2d36b + 3c020ed commit aad900e

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

reference/configuration/framework.rst

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3059,11 +3059,15 @@ php_errors
30593059
log
30603060
...
30613061

3062-
**type**: ``boolean|int`` **default**: ``%kernel.debug%``
3062+
**type**: ``boolean|int|array<int, string>`` **default**: ``%kernel.debug%``
30633063

30643064
Use the application logger instead of the PHP logger for logging PHP errors.
3065-
When an integer value is used, it also sets the log level. Those integer
3066-
values must be the same used in the `error_reporting PHP option`_.
3065+
When an integer value is used, it defines a bitmask of PHP errors that will
3066+
be logged. Those integer values must be the same used in the
3067+
`error_reporting PHP option`_. The default log levels will be used for each
3068+
PHP error.
3069+
When a boolean value is used, ``true`` enables logging for all PHP errors
3070+
while ``false`` disables logging entirely.
30673071

30683072
This option also accepts a map of PHP errors to log levels:
30693073

0 commit comments

Comments
 (0)