Skip to content

Commit

Permalink
Enable argument_variable_must_match_type doctor-rst rule
Browse files Browse the repository at this point in the history
  • Loading branch information
alamirault authored and OskarStark committed Jan 16, 2023
1 parent b98b45c commit 5ea3a82
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
5 changes: 4 additions & 1 deletion .doctor-rst.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
rules:
american_english: ~
argument_variable_must_match_type:
arguments:
- { type: 'ContainerBuilder', name: 'containerBuilder' }
- { type: 'ContainerConfigurator', name: 'containerConfigurator' }
avoid_repetetive_words: ~
blank_line_after_anchor: ~
blank_line_after_directive: ~
Expand Down Expand Up @@ -96,6 +100,5 @@ whitelist:
- '.. versionadded:: 3.6' # MonologBundle
- '// bin/console'
- 'End to End Tests (E2E)'
- '.. code-block:: php'
- '.. _`a feature to test applications using Mercure`: https://github.com/symfony/panther#creating-isolated-browsers-to-test-apps-using-mercure-or-websocket'
- '.. End to End Tests (E2E)'
2 changes: 1 addition & 1 deletion components/uid.rst
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ configure the behavior of the factory using configuration files::
namespace Symfony\Component\DependencyInjection\Loader\Configurator;
return static function (ContainerConfigurator $configurator): void {
return static function (ContainerConfigurator $containerConfigurator): void {
$services = $configurator->services()
->defaults()
->autowire()
Expand Down
2 changes: 1 addition & 1 deletion security/entry_point.rst
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ You can configure this using the ``entry_point`` setting:
.. code-block:: php
// config/packages/security.php
use Symfony\Config\SecurityConfig;
use App\Security\SocialConnectAuthenticator;
use Symfony\Config\SecurityConfig;
return static function (SecurityConfig $security) {
$security->enableAuthenticatorManager(true);
Expand Down
2 changes: 1 addition & 1 deletion serializer.rst
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,8 @@ configuration:
.. code-block:: php
// config/packages/framework.php
use Symfony\Config\FrameworkConfig;
use Symfony\Component\Serializer\Normalizer\AbstractObjectNormalizer;
use Symfony\Config\FrameworkConfig;
return static function (FrameworkConfig $framework) {
$framework->serializer()
Expand Down
2 changes: 1 addition & 1 deletion templating/global_variables.rst
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ the ``@`` character, which is the usual syntax to
.. code-block:: php
// config/packages/twig.php
use Symfony\Config\TwigConfig;
use function Symfony\Component\DependencyInjection\Loader\Configurator\service;
use Symfony\Config\TwigConfig;
return static function (TwigConfig $twig) {
// ...
Expand Down

0 comments on commit 5ea3a82

Please sign in to comment.