Skip to content

Commit 2d31139

Browse files
Apply "visibility_required" CS rule to constants
php-cs-fixer fix --rules='{"visibility_required": ["property", "method", "const"]}'
1 parent bc0389c commit 2d31139

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

Firewall/SwitchUserListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class SwitchUserListener extends AbstractListener implements ListenerInterface
4343
{
4444
use LegacyListenerTrait;
4545

46-
const EXIT_VALUE = '_exit';
46+
public const EXIT_VALUE = '_exit';
4747

4848
private $tokenStorage;
4949
private $provider;

RememberMe/AbstractRememberMeServices.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
*/
3434
abstract class AbstractRememberMeServices implements RememberMeServicesInterface, LogoutHandlerInterface
3535
{
36-
const COOKIE_DELIMITER = ':';
36+
public const COOKIE_DELIMITER = ':';
3737

3838
protected $logger;
3939
protected $options = [

RememberMe/RememberMeServicesInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ interface RememberMeServicesInterface
3131
* This attribute name can be used by the implementation if it needs to set
3232
* a cookie on the Request when there is no actual Response, yet.
3333
*/
34-
const COOKIE_ATTR_NAME = '_security_remember_me_cookie';
34+
public const COOKIE_ATTR_NAME = '_security_remember_me_cookie';
3535

3636
/**
3737
* This method will be called whenever the TokenStorage does not contain

SecurityEvents.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ final class SecurityEvents
2222
*
2323
* @Event("Symfony\Component\Security\Http\Event\InteractiveLoginEvent")
2424
*/
25-
const INTERACTIVE_LOGIN = 'security.interactive_login';
25+
public const INTERACTIVE_LOGIN = 'security.interactive_login';
2626

2727
/**
2828
* The SWITCH_USER event occurs before switch to another user and
2929
* before exit from an already switched user.
3030
*
3131
* @Event("Symfony\Component\Security\Http\Event\SwitchUserEvent")
3232
*/
33-
const SWITCH_USER = 'security.switch_user';
33+
public const SWITCH_USER = 'security.switch_user';
3434
}

Session/SessionAuthenticationStrategy.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@
2626
*/
2727
class SessionAuthenticationStrategy implements SessionAuthenticationStrategyInterface
2828
{
29-
const NONE = 'none';
30-
const MIGRATE = 'migrate';
31-
const INVALIDATE = 'invalidate';
29+
public const NONE = 'none';
30+
public const MIGRATE = 'migrate';
31+
public const INVALIDATE = 'invalidate';
3232

3333
private $strategy;
3434

0 commit comments

Comments
 (0)