Skip to content

Commit 80121fd

Browse files
committed
Add support for PHP 8.5
1 parent 8b96289 commit 80121fd

19 files changed

Lines changed: 40 additions & 30 deletions

File tree

.github/workflows/benchmarks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
strategy:
1414
matrix:
1515
php-version:
16-
- "8.4"
16+
- "8.5"
1717
operating-system:
1818
- "ubuntu-latest"
1919

.github/workflows/code-coverage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- name: "installing PHP"
1818
uses: "shivammathur/setup-php@v2"
1919
with:
20-
php-version: "8.4"
20+
php-version: "8.5"
2121
ini-values: memory_limit=-1
2222
tools: composer:v2, cs2pr
2323
extensions: bcmath, mbstring, intl, sodium, json

.github/workflows/coding-standards.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- name: "installing PHP"
1616
uses: "shivammathur/setup-php@v2"
1717
with:
18-
php-version: "8.4"
18+
php-version: "8.5"
1919
ini-values: memory_limit=-1
2020
tools: composer:v2, cs2pr
2121
extensions: bcmath, mbstring, intl, sodium, json

.github/workflows/documentation-check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- name: "installing PHP"
1616
uses: "shivammathur/setup-php@v2"
1717
with:
18-
php-version: "8.4"
18+
php-version: "8.5"
1919
ini-values: memory_limit=-1
2020
tools: composer:v2, cs2pr
2121
extensions: bcmath, mbstring, intl, sodium, json

.github/workflows/preload-check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- name: "installing PHP"
1616
uses: "shivammathur/setup-php@v2"
1717
with:
18-
php-version: "8.4"
18+
php-version: "8.5"
1919
ini-values: memory_limit=-1
2020
tools: composer:v2, cs2pr
2121
extensions: bcmath, mbstring, intl, sodium, json

.github/workflows/static-analysis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- name: "installing PHP"
1818
uses: "shivammathur/setup-php@v2"
1919
with:
20-
php-version: "8.4"
20+
php-version: "8.5"
2121
ini-values: memory_limit=-1
2222
tools: composer:v2, cs2pr
2323
extensions: bcmath, mbstring, intl, sodium, json

.github/workflows/unit-tests.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,11 @@ jobs:
1616
php-version:
1717
- "8.3"
1818
- "8.4"
19+
- "8.5"
1920
operating-system:
2021
- "macos-latest"
2122
- "ubuntu-latest"
2223
- "windows-latest"
23-
exclude:
24-
- php-version: "8.4"
25-
operating-system: "ubuntu-latest"
2624

2725
steps:
2826
- name: "checkout"

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
}
1111
],
1212
"require": {
13-
"php": "~8.3.0 || ~8.4.0",
13+
"php": "~8.3.0 || ~8.4.0 || ~8.5.0",
1414
"ext-bcmath": "*",
1515
"ext-json": "*",
1616
"ext-mbstring": "*",

docs/component/str.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
- [starts_with_ci](./../../src/Psl/Str/starts_with_ci.php#L12)
6969
- [strip_prefix](./../../src/Psl/Str/strip_prefix.php#L13)
7070
- [strip_suffix](./../../src/Psl/Str/strip_suffix.php#L13)
71-
- [to_int](./../../src/Psl/Str/to_int.php#L12)
71+
- [to_int](./../../src/Psl/Str/to_int.php#L14)
7272
- [trim](./../../src/Psl/Str/trim.php#L21)
7373
- [trim_left](./../../src/Psl/Str/trim_left.php#L21)
7474
- [trim_right](./../../src/Psl/Str/trim_right.php#L21)

src/Psl/Async/Internal/State.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
use Revolt\EventLoop;
1212
use Throwable;
1313

14+
use function str_increment;
15+
1416
/**
1517
* The following class was derived from code of Amphp.
1618
*
@@ -69,7 +71,8 @@ public function __destruct()
6971
*/
7072
public function subscribe(Closure $callback): string
7173
{
72-
$id = self::$nextId++;
74+
$id = self::$nextId;
75+
self::$nextId = str_increment(self::$nextId);
7376

7477
$this->handled = true;
7578

0 commit comments

Comments
 (0)