Skip to content

Commit eda7546

Browse files
authored
Upgrade friendsofphp/php-cs-fixer to ^3.0 (#3566)
* Upgrade friendsofphp/php-cs-fixer to ^3.0 and format code * Rename barnch to 2.2 * Create CHANGELOG-2.2.md
1 parent 18abfc5 commit eda7546

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

src/Context.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
class Context
1818
{
19-
const FD = 'ws.fd';
19+
public const FD = 'ws.fd';
2020

2121
/**
2222
* @var array

src/CoreMiddleware.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
class CoreMiddleware extends HttpCoreMiddleware
2323
{
24-
const HANDLER_NAME = 'class';
24+
public const HANDLER_NAME = 'class';
2525

2626
/**
2727
* Handle the response when found.

src/Security.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@
1313

1414
class Security
1515
{
16-
const VERSION = '13';
16+
public const VERSION = '13';
1717

18-
const PATTEN = '#^[+/0-9A-Za-z]{21}[AQgw]==$#';
18+
public const PATTEN = '#^[+/0-9A-Za-z]{21}[AQgw]==$#';
1919

20-
const KEY = '258EAFA5-E914-47DA-95CA-C5AB0DC85B11';
20+
public const KEY = '258EAFA5-E914-47DA-95CA-C5AB0DC85B11';
2121

22-
const SEC_WEBSOCKET_KEY = 'Sec-Websocket-Key';
22+
public const SEC_WEBSOCKET_KEY = 'Sec-Websocket-Key';
2323

24-
const SEC_WEBSOCKET_PROTOCOL = 'Sec-WebSocket-Protocol';
24+
public const SEC_WEBSOCKET_PROTOCOL = 'Sec-WebSocket-Protocol';
2525

2626
public function isInvalidSecurityKey(string $key): bool
2727
{

0 commit comments

Comments
 (0)