Skip to content

Commit a9859dc

Browse files
committed
Merge branch 'php85'
2 parents 2bf41b4 + fbe79a4 commit a9859dc

22 files changed

Lines changed: 1245 additions & 242 deletions

.github/workflows/ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,8 @@ jobs:
140140
php-version: "8.0"
141141
- os: ubuntu-24.04
142142
php-version: "7.4"
143+
- os: ubuntu-24.04
144+
php-version: "8.5"
143145

144146
runs-on: ${{ matrix.os }}
145147

@@ -284,6 +286,8 @@ jobs:
284286
php-version: "8.0"
285287
- os: ubuntu-24.04
286288
php-version: "7.4"
289+
- os: ubuntu-24.04
290+
php-version: "8.5"
287291

288292
runs-on: ${{ matrix.os }}
289293

.php-cs-fixer.dist.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
'T_PROTECTED_SET',
66
'T_PUBLIC_SET',
77
'T_PROPERTY_C',
8+
'T_VOID_CAST',
9+
'T_PIPE',
810
'T_ATTRIBUTE_COMMENT',
911
'T_CLOSE_ALT',
1012
'T_NULL',

.vscode/launch.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@
111111
]
112112
},
113113
{
114-
"name": "Format current file, with optional arguments (PHP 8.4)",
114+
"name": "Format current file, with optional arguments (PHP 8.5)",
115115
"type": "php",
116116
"request": "launch",
117117
"program": "${workspaceFolder:pretty-php}/bin/pretty-php",
@@ -120,7 +120,7 @@
120120
"runtimeExecutable": "bash",
121121
"runtimeArgs": [
122122
"-c",
123-
"eval \"args=(${*: -1})\" && php84 \"${@:1:$#-1}\" \"${args[@]}\"",
123+
"eval \"args=(${*: -1})\" && php85 \"${@:1:$#-1}\" \"${args[@]}\"",
124124
"bash",
125125
"-dzend_extension=xdebug.so",
126126
"-dxdebug.start_with_request=yes",

bootstrap.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919
'T_PROTECTED_SET' => false,
2020
'T_PUBLIC_SET' => false,
2121
'T_PROPERTY_C' => false,
22+
// PHP 8.5
23+
'T_VOID_CAST' => false,
24+
'T_PIPE' => false,
2225
// Custom
2326
'T_ATTRIBUTE_COMMENT' => false,
2427
'T_CLOSE_ALT' => false,
@@ -77,6 +80,10 @@
7780
defined('T_PUBLIC_SET') || define('T_PUBLIC_SET', $getNextId());
7881
defined('T_PROPERTY_C') || define('T_PROPERTY_C', $getNextId());
7982

83+
// Define PHP 8.5 tokens
84+
defined('T_VOID_CAST') || define('T_VOID_CAST', $getNextId());
85+
defined('T_PIPE') || define('T_PIPE', $getNextId());
86+
8087
// Define custom tokens
8188
$id = 20000;
8289
defined('T_ATTRIBUTE_COMMENT') || define('T_ATTRIBUTE_COMMENT', $getNextId());

composer.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@
1818
"ext-mbstring": "*",
1919
"ext-tokenizer": "*",
2020
"composer-runtime-api": "^2.2",
21-
"salient/cli": "0.99.79",
22-
"salient/collections": "0.99.79",
23-
"salient/console": "0.99.79",
24-
"salient/contracts": "0.99.79",
25-
"salient/core": "0.99.79",
26-
"salient/phpdoc": "0.99.79",
27-
"salient/polyfills": "0.99.79",
28-
"salient/utils": "0.99.79",
21+
"salient/cli": "0.99.81",
22+
"salient/collections": "0.99.81",
23+
"salient/console": "0.99.81",
24+
"salient/contracts": "0.99.81",
25+
"salient/core": "0.99.81",
26+
"salient/phpdoc": "0.99.81",
27+
"salient/polyfills": "0.99.81",
28+
"salient/utils": "0.99.81",
2929
"sebastian/diff": "^4 || ^5"
3030
},
3131
"require-dev": {
@@ -36,9 +36,9 @@
3636
"phpstan/phpstan-deprecation-rules": "^2",
3737
"phpstan/phpstan-phpunit": "^2",
3838
"phpunit/phpunit": "^9",
39-
"salient/phpstan": "0.99.79",
40-
"salient/sli": "0.99.79",
41-
"salient/testing": "0.99.79"
39+
"salient/phpstan": "0.99.81",
40+
"salient/sli": "0.99.81",
41+
"salient/testing": "0.99.81"
4242
},
4343
"autoload": {
4444
"psr-4": {

0 commit comments

Comments
 (0)