Skip to content

Commit 89d74b5

Browse files
authored
Merge pull request #142 from mairo744/update/php-84-fix
Fix failing tests on PHP 8.4 (follow-up to mezzio-swoole#137)
2 parents 54477ef + 22177cd commit 89d74b5

24 files changed

+61
-73
lines changed

.laminas-ci.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
2-
"extensions": [
3-
"inotify"
4-
]
2+
"extensions": [],
3+
"ignore_php_platform_requirements": {
4+
"8.4": true
5+
}
56
}

.laminas-ci/pre-install.sh

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,12 @@ JOB=$3
44
PHP_VERSION=$(echo "${JOB}" | jq -r '.php')
55

66
apt update
7-
apt install -y "php${PHP_VERSION}-swoole"
7+
8+
# Build package list
9+
PACKAGES="php${PHP_VERSION}-swoole"
10+
if [ "$PHP_VERSION" != "8.4" ]; then
11+
PACKAGES="$PACKAGES php${PHP_VERSION}-inotify"
12+
fi
13+
14+
# Install all packages at once
15+
apt install -y $PACKAGES

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"extra": {
3636
},
3737
"require": {
38-
"php": "~8.2.0 || ~8.3.0",
38+
"php": "~8.2.0 || ~8.3.0 || ~8.4.0",
3939
"dflydev/fig-cookies": "^2.0.1 || ^3.0",
4040
"laminas/laminas-cli": "^1.8",
4141
"laminas/laminas-diactoros": "^2.25.2 || ^3.0",
@@ -56,7 +56,7 @@
5656
"laminas/laminas-servicemanager": "^3.20",
5757
"phpunit/phpunit": "^10.5",
5858
"psalm/plugin-phpunit": "^0.18.4",
59-
"swoole/ide-helper": "^5.0.3",
59+
"swoole/ide-helper": "^6.0",
6060
"vimeo/psalm": "^5.19"
6161
},
6262
"suggest": {

composer.lock

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/book/how_it_works.md

Lines changed: 0 additions & 6 deletions
This file was deleted.

docs/book/intro.md

Lines changed: 0 additions & 6 deletions
This file was deleted.

docs/book/logging.md

Lines changed: 0 additions & 6 deletions
This file was deleted.

docs/book/static-resources.md

Lines changed: 0 additions & 6 deletions
This file was deleted.

docs/book/v2/hot-code-reload.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ that Swoole will not reload any of the following:
5555

5656
- New routes
5757
- New pipeline middleware
58-
- The `Application` instance, _or any delegators used to modify it_.
58+
- The `Application` instance, *or any delegators used to modify it*.
5959
- The Swoole HTTP server itself.
6060

6161
This limitation exists because the hot code reload features use the

docs/book/v2/static-resources.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ then checks to see if the file exists in the document root. If it does, it will
2323
serve it.
2424

2525
<!-- markdownlint-disable-next-line header-increment -->
26-
> ### Disabling static resources
26+
> ## Disabling static resources
2727
>
2828
> - Since 2.1.0
2929
>

0 commit comments

Comments
 (0)