8000 minor #37869 Fix the parameter names in the SecurityFactoryInterface:… · symfony/symfony@5d88798 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5d88798

Browse files
committed
minor #37869 Fix the parameter names in the SecurityFactoryInterface::create() method (leofeyer)
This PR was merged into the 4.4 branch. Discussion ---------- Fix the parameter names in the SecurityFactoryInterface::create() method | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | - | License | MIT | Doc PR | - With regard to PHP 8, Psalm has added a named arguments check: https://psalm.dev/articles/getting-ready-for-named-arguments This check currently fails, because the `SecurityFactoryInterface` uses different parameter names than the `AbstractFactory`. You can see for yourselves at https://psalm.dev/r/81413a1c96. Commits ------- a73f5c1 Fix the parameter names in the SecurityFactoryInterface::create() method
2 parents 7f7b447 + a73f5c1 commit 5d88798

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/Factory/SecurityFactoryInterface.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,17 @@ interface SecurityFactoryInterface
2424
/**
2525
* Configures the container services required to use the authentication listener.
2626
*
27-
* @param string $id The unique id of the firewall
28-
* @param array $config The options array for the listener
29-
* @param string $userProvider The service id of the user provider
30-
* @param string|null $defaultEntryPoint
27+
* @param string $id The unique id of the firewall
28+
* @param array $config The options array for the listener
29+
* @param string $userProviderId The service id of the user provider
30+
* @param string|null $defaultEntryPointId
3131
*
3232
* @return array containing three values:
3333
* - the provider id
3434
* - the listener id
3535
* - the entry point id
3636
*/
37-
public function create(ContainerBuilder $container, $id, $config, $userProvider, $defaultEntryPoint);
37+
public function create(ContainerBuilder $container, $id, $config, $userProviderId, $defaultEntryPointId);
3838

3939
/**
4040
* Defines the position at which the provider is called.

0 commit comments

Comments
 (0)
0