Skip to content

Commit 1eb9998

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

File tree

4 files changed

+20
-20
lines changed

4 files changed

+20
-20
lines changed

EventListener/AbstractSessionListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
*/
3838
abstract class AbstractSessionListener implements EventSubscriberInterface
3939
{
40-
const NO_AUTO_CACHE_CONTROL_HEADER = 'Symfony-Session-NoAutoCacheControl';
40+
public const NO_AUTO_CACHE_CONTROL_HEADER = 'Symfony-Session-NoAutoCacheControl';
4141

4242
protected $container;
4343
private $sessionUsageStack = [];

HttpKernelInterface.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
*/
2222
interface HttpKernelInterface
2323
{
24-
const MASTER_REQUEST = 1;
25-
const SUB_REQUEST = 2;
24+
public const MASTER_REQUEST = 1;
25+
public const SUB_REQUEST = 2;
2626

2727
/**
2828
* Handles a Request to convert it to a Response.

Kernel.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -76,15 +76,15 @@ abstract class Kernel implements KernelInterface, RebootableInterface, Terminabl
7676

7777
private static $freshCache = [];
7878

79-
const VERSION = '4.4.18-DEV';
80-
const VERSION_ID = 40418;
81-
const MAJOR_VERSION = 4;
82-
const MINOR_VERSION = 4;
83-
const RELEASE_VERSION = 18;
84-
const EXTRA_VERSION = 'DEV';
85-
86-
const END_OF_MAINTENANCE = '11/2022';
87-
const END_OF_LIFE = '11/2023';
79+
public const VERSION = '4.4.18-DEV';
80+
public const VERSION_ID = 40418;
81+
public const MAJOR_VERSION = 4;
82+
public const MINOR_VERSION = 4;
83+
public const RELEASE_VERSION = 18;
84+
public const EXTRA_VERSION = 'DEV';
85+
86+
public const END_OF_MAINTENANCE = '11/2022';
87+
public const END_OF_LIFE = '11/2023';
8888

8989
public function __construct(string $environment, bool $debug)
9090
{

KernelEvents.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ final class KernelEvents
2727
*
2828
* @Event("Symfony\Component\HttpKernel\Event\RequestEvent")
2929
*/
30-
const REQUEST = 'kernel.request';
30+
public const REQUEST = 'kernel.request';
3131

3232
/**
3333
* The EXCEPTION event occurs when an uncaught exception appears.
@@ -37,7 +37,7 @@ final class KernelEvents
3737
*
3838
* @Event("Symfony\Component\HttpKernel\Event\ExceptionEvent")
3939
*/
40-
const EXCEPTION = 'kernel.exception';
40+
public const EXCEPTION = 'kernel.exception';
4141

4242
/**
4343
* The VIEW event occurs when the return value of a controller
@@ -48,7 +48,7 @@ final class KernelEvents
4848
*
4949
* @Event("Symfony\Component\HttpKernel\Event\ViewEvent")
5050
*/
51-
const VIEW = 'kernel.view';
51+
public const VIEW = 'kernel.view';
5252

5353
/**
5454
* The CONTROLLER event occurs once a controller was found for
@@ -59,7 +59,7 @@ final class KernelEvents
5959
*
6060
* @Event("Symfony\Component\HttpKernel\Event\ControllerEvent")
6161
*/
62-
const CONTROLLER = 'kernel.controller';
62+
public const CONTROLLER = 'kernel.controller';
6363

6464
/**
6565
* The CONTROLLER_ARGUMENTS event occurs once controller arguments have been resolved.
@@ -69,7 +69,7 @@ final class KernelEvents
6969
*
7070
* @Event("Symfony\Component\HttpKernel\Event\ControllerArgumentsEvent")
7171
*/
72-
const CONTROLLER_ARGUMENTS = 'kernel.controller_arguments';
72+
public const CONTROLLER_ARGUMENTS = 'kernel.controller_arguments';
7373

7474
/**
7575
* The RESPONSE event occurs once a response was created for
@@ -80,7 +80,7 @@ final class KernelEvents
8080
*
8181
* @Event("Symfony\Component\HttpKernel\Event\ResponseEvent")
8282
*/
83-
const RESPONSE = 'kernel.response';
83+
public const RESPONSE = 'kernel.response';
8484

8585
/**
8686
* The TERMINATE event occurs once a response was sent.
@@ -89,7 +89,7 @@ final class KernelEvents
8989
*
9090
* @Event("Symfony\Component\HttpKernel\Event\TerminateEvent")
9191
*/
92-
const TERMINATE = 'kernel.terminate';
92+
public const TERMINATE = 'kernel.terminate';
9393

9494
/**
9595
* The FINISH_REQUEST event occurs when a response was generated for a request.
@@ -99,5 +99,5 @@ final class KernelEvents
9999
*
100100
* @Event("Symfony\Component\HttpKernel\Event\FinishRequestEvent")
101101
*/
102-
const FINISH_REQUEST = 'kernel.finish_request';
102+
public const FINISH_REQUEST = 'kernel.finish_request';
103103
}

0 commit comments

Comments
 (0)