Skip to content

Commit 87f58a9

Browse files
committed
minor #18761 [FrameworkBundle] Configuration : Fix !php/const syntax in yaml (ppelisset)
This PR was merged into the 5.4 branch. Discussion ---------- [FrameworkBundle] Configuration : Fix !php/const syntax in yaml Hello, I would like to suggest a correction for the FrameworkBundle configuration documentation. In a configuration example, the Yaml syntax to use the value of a PHP constant as a key is incorrect. Indeed, in Symfony's Yaml parser source code, only unquoted scalars are evaluated. Therefore, the configuration key should not be enclosed in quotes for the example to work. Please feel free to question me if you need any further information. Commits ------- 4121f05 Fix !php/const syntax in yaml
2 parents c82934f + 4121f05 commit 87f58a9

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

reference/configuration/framework.rst

+15-15
Original file line numberDiff line numberDiff line change
@@ -2915,21 +2915,21 @@ This option also accepts a map of PHP errors to log levels:
29152915
framework:
29162916
php_errors:
29172917
log:
2918-
'!php/const \E_DEPRECATED': !php/const Psr\Log\LogLevel::ERROR
2919-
'!php/const \E_USER_DEPRECATED': !php/const Psr\Log\LogLevel::ERROR
2920-
'!php/const \E_NOTICE': !php/const Psr\Log\LogLevel::ERROR
2921-
'!php/const \E_USER_NOTICE': !php/const Psr\Log\LogLevel::ERROR
2922-
'!php/const \E_STRICT': !php/const Psr\Log\LogLevel::ERROR
2923-
'!php/const \E_WARNING': !php/const Psr\Log\LogLevel::ERROR
2924-
'!php/const \E_USER_WARNING': !php/const Psr\Log\LogLevel::ERROR
2925-
'!php/const \E_COMPILE_WARNING': !php/const Psr\Log\LogLevel::ERROR
2926-
'!php/const \E_CORE_WARNING': !php/const Psr\Log\LogLevel::ERROR
2927-
'!php/const \E_USER_ERROR': !php/const Psr\Log\LogLevel::CRITICAL
2928-
'!php/const \E_RECOVERABLE_ERROR': !php/const Psr\Log\LogLevel::CRITICAL
2929-
'!php/const \E_COMPILE_ERROR': !php/const Psr\Log\LogLevel::CRITICAL
2930-
'!php/const \E_PARSE': !php/const Psr\Log\LogLevel::CRITICAL
2931-
'!php/const \E_ERROR': !php/const Psr\Log\LogLevel::CRITICAL
2932-
'!php/const \E_CORE_ERROR': !php/const Psr\Log\LogLevel::CRITICAL
2918+
!php/const \E_DEPRECATED: !php/const Psr\Log\LogLevel::ERROR
2919+
!php/const \E_USER_DEPRECATED: !php/const Psr\Log\LogLevel::ERROR
2920+
!php/const \E_NOTICE: !php/const Psr\Log\LogLevel::ERROR
2921+
!php/const \E_USER_NOTICE: !php/const Psr\Log\LogLevel::ERROR
2922+
!php/const \E_STRICT: !php/const Psr\Log\LogLevel::ERROR
2923+
!php/const \E_WARNING: !php/const Psr\Log\LogLevel::ERROR
2924+
!php/const \E_USER_WARNING: !php/const Psr\Log\LogLevel::ERROR
2925+
!php/const \E_COMPILE_WARNING: !php/const Psr\Log\LogLevel::ERROR
2926+
!php/const \E_CORE_WARNING: !php/const Psr\Log\LogLevel::ERROR
2927+
!php/const \E_USER_ERROR: !php/const Psr\Log\LogLevel::CRITICAL
2928+
!php/const \E_RECOVERABLE_ERROR: !php/const Psr\Log\LogLevel::CRITICAL
2929+
!php/const \E_COMPILE_ERROR: !php/const Psr\Log\LogLevel::CRITICAL
2930+
!php/const \E_PARSE: !php/const Psr\Log\LogLevel::CRITICAL
2931+
!php/const \E_ERROR: !php/const Psr\Log\LogLevel::CRITICAL
2932+
!php/const \E_CORE_ERROR: !php/const Psr\Log\LogLevel::CRITICAL
29332933
29342934
.. code-block:: xml
29352935

0 commit comments

Comments
 (0)