Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitdbe423d

Browse files
committed
[Security] Add types to private properties
Signed-off-by: Alexander M. Turek <me@derrabus.de>
1 parentd8a556b commitdbe423d

File tree

117 files changed

+342
-350
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

117 files changed

+342
-350
lines changed

‎src/Symfony/Bundle/SecurityBundle/CacheWarmer/ExpressionCacheWarmer.php‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@
1717

1818
class ExpressionCacheWarmerimplements CacheWarmerInterface
1919
{
20-
private$expressions;
21-
private$expressionLanguage;
20+
privateiterable$expressions;
21+
privateExpressionLanguage$expressionLanguage;
2222

2323
/**
24-
* @param iterable|Expression[] $expressions
24+
* @param iterable<mixed,Expression|string> $expressions
2525
*/
2626
publicfunction__construct(iterable$expressions,ExpressionLanguage$expressionLanguage)
2727
{

‎src/Symfony/Bundle/SecurityBundle/Command/DebugFirewallCommand.php‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@
3232
#[AsCommand(name:'debug:firewall', description:'Display information about your security firewall(s)')]
3333
finalclass DebugFirewallCommandextends Command
3434
{
35-
private$firewallNames;
36-
private$contexts;
37-
private$eventDispatchers;
38-
private$authenticators;
35+
privatearray$firewallNames;
36+
privateContainerInterface$contexts;
37+
privateContainerInterface$eventDispatchers;
38+
privatearray$authenticators;
3939

4040
/**
4141
* @param string[] $firewallNames

‎src/Symfony/Bundle/SecurityBundle/DataCollector/SecurityDataCollector.php‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,13 @@
3636
*/
3737
class SecurityDataCollectorextends DataCollectorimplements LateDataCollectorInterface
3838
{
39-
private$tokenStorage;
40-
private$roleHierarchy;
41-
private$logoutUrlGenerator;
42-
private$accessDecisionManager;
43-
private$firewallMap;
44-
private$firewall;
45-
private$hasVarDumper;
39+
private?TokenStorageInterface$tokenStorage;
40+
private?RoleHierarchyInterface$roleHierarchy;
41+
private?LogoutUrlGenerator$logoutUrlGenerator;
42+
private?AccessDecisionManagerInterface$accessDecisionManager;
43+
private?FirewallMapInterface$firewallMap;
44+
private?TraceableFirewallListener$firewall;
45+
privatebool$hasVarDumper;
4646

4747
publicfunction__construct(TokenStorageInterface$tokenStorage =null,RoleHierarchyInterface$roleHierarchy =null,LogoutUrlGenerator$logoutUrlGenerator =null,AccessDecisionManagerInterface$accessDecisionManager =null,FirewallMapInterface$firewallMap =null,TraceableFirewallListener$firewall =null)
4848
{

‎src/Symfony/Bundle/SecurityBundle/Debug/TraceableFirewallListener.php‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
*/
2626
finalclass TraceableFirewallListenerextends FirewallListener
2727
{
28-
private$wrappedListeners = [];
29-
private$authenticatorsInfo = [];
28+
privatearray$wrappedListeners = [];
29+
privatearray$authenticatorsInfo = [];
3030

3131
publicfunctiongetWrappedListeners()
3232
{

‎src/Symfony/Bundle/SecurityBundle/Debug/TraceableListenerTrait.php‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
namespaceSymfony\Bundle\SecurityBundle\Debug;
1313

14+
useSymfony\Component\HttpFoundation\Response;
1415
useSymfony\Component\Security\Http\Authenticator\Debug\TraceableAuthenticatorManagerListener;
1516
useSymfony\Component\VarDumper\Caster\ClassStub;
1617

@@ -21,10 +22,10 @@
2122
*/
2223
trait TraceableListenerTrait
2324
{
24-
private$response;
25-
private$listener;
26-
private$time;
27-
private$stub;
25+
private?Response$response =null;
26+
privatemixed$listener;
27+
private?float$time =null;
28+
privateobject$stub;
2829

2930
/**
3031
* Proxies all method calls to the original listener.

‎src/Symfony/Bundle/SecurityBundle/DependencyInjection/MainConfiguration.php‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ class MainConfiguration implements ConfigurationInterface
3636
/** @internal */
3737
publicconstSTRATEGY_PRIORITY ='priority';
3838

39-
private$factories;
40-
private$userProviderFactories;
39+
privatearray$factories;
40+
privatearray$userProviderFactories;
4141

4242
/**
4343
* @param AuthenticatorFactoryInterface[] $factories

‎src/Symfony/Bundle/SecurityBundle/DependencyInjection/SecurityExtension.php‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,14 @@
5555
*/
5656
class SecurityExtensionextends Extensionimplements PrependExtensionInterface
5757
{
58-
private$requestMatchers = [];
59-
private$expressions = [];
60-
private$contextListeners = [];
58+
privatearray$requestMatchers = [];
59+
privatearray$expressions = [];
60+
privatearray$contextListeners = [];
6161
/** @var list<array{0: int, 1: AuthenticatorFactoryInterface}> */
62-
private$factories = [];
62+
privatearray$factories = [];
6363
/** @var AuthenticatorFactoryInterface[] */
64-
private$sortedFactories = [];
65-
private$userProviderFactories = [];
64+
privatearray$sortedFactories = [];
65+
privatearray$userProviderFactories = [];
6666

6767
publicfunctionprepend(ContainerBuilder$container)
6868
{

‎src/Symfony/Bundle/SecurityBundle/EventListener/FirewallListener.php‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
*/
2626
class FirewallListenerextends Firewall
2727
{
28-
private$map;
29-
private$logoutUrlGenerator;
28+
privateFirewallMapInterface$map;
29+
privateLogoutUrlGenerator$logoutUrlGenerator;
3030

3131
publicfunction__construct(FirewallMapInterface$map,EventDispatcherInterface$dispatcher,LogoutUrlGenerator$logoutUrlGenerator)
3232
{

‎src/Symfony/Bundle/SecurityBundle/EventListener/VoteListener.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
*/
2525
class VoteListenerimplements EventSubscriberInterface
2626
{
27-
private$traceableAccessDecisionManager;
27+
privateTraceableAccessDecisionManager$traceableAccessDecisionManager;
2828

2929
publicfunction__construct(TraceableAccessDecisionManager$traceableAccessDecisionManager)
3030
{

‎src/Symfony/Bundle/SecurityBundle/RememberMe/DecoratedRememberMeHandler.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
*/
2525
finalclass DecoratedRememberMeHandlerimplements RememberMeHandlerInterface
2626
{
27-
private$handler;
27+
privateRememberMeHandlerInterface$handler;
2828

2929
publicfunction__construct(RememberMeHandlerInterface$handler)
3030
{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp