Skip to content

Commit 76ff161

Browse files
committed
Merge branch '6.2' into 6.3
* 6.2: Enable argument_variable_must_match_type doctor-rst rule
2 parents 5eafec9 + a7dbad2 commit 76ff161

File tree

5 files changed

+13
-10
lines changed

5 files changed

+13
-10
lines changed

.doctor-rst.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
rules:
22
american_english: ~
3+
argument_variable_must_match_type:
4+
arguments:
5+
- { type: 'ContainerBuilder', name: 'containerBuilder' }
6+
- { type: 'ContainerConfigurator', name: 'containerConfigurator' }
37
avoid_repetetive_words: ~
48
blank_line_after_anchor: ~
59
blank_line_after_directive: ~
@@ -96,6 +100,5 @@ whitelist:
96100
- '.. versionadded:: 3.6' # MonologBundle
97101
- '// bin/console'
98102
- 'End to End Tests (E2E)'
99-
- '.. code-block:: php'
100103
- '.. _`a feature to test applications using Mercure`: https://github.com/symfony/panther#creating-isolated-browsers-to-test-apps-using-mercure-or-websocket'
101104
- '.. End to End Tests (E2E)'

components/uid.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ configure the behavior of the factory using configuration files::
133133
134134
namespace Symfony\Component\DependencyInjection\Loader\Configurator;
135135
136-
return static function (ContainerConfigurator $configurator): void {
136+
return static function (ContainerConfigurator $containerConfigurator): void {
137137
$services = $configurator->services()
138138
->defaults()
139139
->autowire()

security/entry_point.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ You can configure this using the ``entry_point`` setting:
6060
.. code-block:: php
6161
6262
// config/packages/security.php
63-
use Symfony\Config\SecurityConfig;
6463
use App\Security\SocialConnectAuthenticator;
64+
use Symfony\Config\SecurityConfig;
6565
6666
return static function (SecurityConfig $security) {
6767
$security->enableAuthenticatorManager(true);

serializer.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -145,9 +145,9 @@ configuration:
145145
.. code-block:: php
146146
147147
// config/packages/framework.php
148-
use Symfony\Config\FrameworkConfig;
149148
use Symfony\Component\Serializer\Normalizer\AbstractObjectNormalizer;
150149
use Symfony\Component\Serializer\Encoder\YamlEncoder;
150+
use Symfony\Config\FrameworkConfig;
151151
152152
return static function (FrameworkConfig $framework) {
153153
$framework->serializer()
@@ -412,7 +412,7 @@ their paths using a :doc:`valid PropertyAccess syntax </components/property_acce
412412
attributes:
413413
dob:
414414
serialized_path: '[profile][information][birthday]'
415-
415+
416416
.. code-block:: xml
417417
418418
<?xml version="1.0" encoding="UTF-8" ?>
@@ -430,8 +430,8 @@ their paths using a :doc:`valid PropertyAccess syntax </components/property_acce
430430

431431
The option to configure a ``SerializedPath`` was introduced in Symfony 6.2.
432432

433-
Using the configuration from above, denormalizing with a metadata-aware
434-
normalizer will write the ``birthday`` field from ``$data`` onto the ``Person``
433+
Using the configuration from above, denormalizing with a metadata-aware
434+
normalizer will write the ``birthday`` field from ``$data`` onto the ``Person``
435435
object::
436436

437437
$data = [
@@ -441,10 +441,10 @@ object::
441441
],
442442
],
443443
];
444-
$person = $normalizer->denormalize($data, Person::class, 'any');
444+
$person = $normalizer->denormalize($data, Person::class, 'any');
445445
$person->getBirthday(); // 01-01-1970
446446

447-
When using annotations or attributes, the ``SerializedPath`` can either
447+
When using annotations or attributes, the ``SerializedPath`` can either
448448
be set on the property or the associated _getter_ method. The ``SerializedPath``
449449
cannot be used in combination with a ``SerializedName`` for the same property.
450450

templating/global_variables.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,8 @@ the ``@`` character, which is the usual syntax to
9999
.. code-block:: php
100100
101101
// config/packages/twig.php
102-
use Symfony\Config\TwigConfig;
103102
use function Symfony\Component\DependencyInjection\Loader\Configurator\service;
103+
use Symfony\Config\TwigConfig;
104104
105105
return static function (TwigConfig $twig) {
106106
// ...

0 commit comments

Comments
 (0)