Skip to content

Commit ac6dd47

Browse files
committed
Merge branch '5.2' into 5.x
* 5.2: Fix strict_variables default value since Symfony 5 Document named arguments BC policy
2 parents c3f0447 + dee5127 commit ac6dd47

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

contributing/code/bc.rst

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ backward compatibility promise:
7272
+-----------------------------------------------+-----------------------------+
7373
| Type hint against the interface | Yes |
7474
+-----------------------------------------------+-----------------------------+
75-
| Call a method | Yes |
75+
| Call a method | Yes [10]_ |
7676
+-----------------------------------------------+-----------------------------+
7777
| **If you implement the interface and...** | **Then we guarantee BC...** |
7878
+-----------------------------------------------+-----------------------------+
@@ -114,13 +114,13 @@ covered by our backward compatibility promise:
114114
+-----------------------------------------------+-----------------------------+
115115
| Access a public property | Yes |
116116
+-----------------------------------------------+-----------------------------+
117-
| Call a public method | Yes |
117+
| Call a public method | Yes [10]_ |
118118
+-----------------------------------------------+-----------------------------+
119119
| **If you extend the class and...** | **Then we guarantee BC...** |
120120
+-----------------------------------------------+-----------------------------+
121121
| Access a protected property | Yes |
122122
+-----------------------------------------------+-----------------------------+
123-
| Call a protected method | Yes |
123+
| Call a protected method | Yes [10]_ |
124124
+-----------------------------------------------+-----------------------------+
125125
| Override a public property | Yes |
126126
+-----------------------------------------------+-----------------------------+
@@ -445,4 +445,8 @@ Turn static into non static No
445445
446446
.. [9] Allowed for the ``void`` return type.
447447
448+
.. [10] Parameter names are not part of the compatibility promise. Using
449+
PHP 8's named arguments feature might break your code when upgrading to
450+
newer Symfony versions.
451+
448452
.. _`Semantic Versioning`: https://semver.org/

reference/configuration/twig.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ Read more about :ref:`template directories and namespaces <templates-namespaces>
363363
strict_variables
364364
~~~~~~~~~~~~~~~~
365365

366-
**type**: ``boolean`` **default**: ``false``
366+
**type**: ``boolean`` **default**: ``%kernel.debug%``
367367

368368
If set to ``true``, Symfony shows an exception whenever a Twig variable,
369369
attribute or method doesn't exist. If set to ``false`` these errors are ignored

0 commit comments

Comments
 (0)