Skip to content

Commit 7c20801

Browse files
committed
Add PHP 8.5 tokens
1 parent 697f900 commit 7c20801

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

.php-cs-fixer.dist.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
<?php
22

33
$customTokens = [
4-
'T_PRIVATE_SET',
5-
'T_PROTECTED_SET',
6-
'T_PUBLIC_SET',
7-
'T_PROPERTY_C',
4+
'T_VOID_CAST',
5+
'T_PIPE',
86
'T_OPEN_BRACE',
97
'T_OPEN_BRACKET',
108
'T_OPEN_PARENTHESIS',

src/Toolkit/Sli/bootstrap.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@
1717
defined('T_PUBLIC_SET') || define('T_PUBLIC_SET', 10013);
1818
defined('T_PROPERTY_C') || define('T_PROPERTY_C', 10014);
1919

20+
// PHP 8.5 tokens
21+
defined('T_VOID_CAST') || define('T_VOID_CAST', 10015);
22+
defined('T_PIPE') || define('T_PIPE', 10016);
23+
2024
// Single-character tokens
2125
defined('T_OPEN_BRACE') || define('T_OPEN_BRACE', ord('{'));
2226
defined('T_OPEN_BRACKET') || define('T_OPEN_BRACKET', ord('['));

0 commit comments

Comments
 (0)