Skip to content

Commit 446f23e

Browse files
authored
Merge pull request #32 from gsteel/PHP-8.2
Add support for PHP 8.2, drop support for PHP 7.4
2 parents bcfe3ab + f2b85b3 commit 446f23e

File tree

4 files changed

+161
-271
lines changed

4 files changed

+161
-271
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/bin/bash
2+
3+
PHP_VERSION="$1"
4+
5+
if ! [[ "${PHP_VERSION}" =~ 8\.2 ]]; then
6+
echo "APCu is only installed from pecl for PHP 8.2, ${PHP_VERSION} detected."
7+
exit 0;
8+
fi
9+
10+
set +e
11+
12+
pecl install --configureoptions 'enable-apcu-debug="no"' apcu
13+
echo "extension=apcu.so" > /etc/php/"${PHP_VERSION}"/mods-available/apcu.ini
14+
phpenmod -v "${PHP}" -s cli apcu

.laminas-ci/pre-install.sh

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/bash
2+
3+
WORKING_DIRECTORY=$2
4+
JOB=$3
5+
PHP_VERSION=$(echo "${JOB}" | jq -r '.php')
6+
7+
"${WORKING_DIRECTORY}"/.laminas-ci/install-apcu-extension-via-pecl.sh "${PHP_VERSION}" || exit 1

composer.json

+7-7
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"config": {
2222
"sort-packages": true,
2323
"platform": {
24-
"php": "7.4.99"
24+
"php": "8.0.99"
2525
},
2626
"allow-plugins": {
2727
"dealerdirect/phpcodesniffer-composer-installer": true
@@ -33,20 +33,20 @@
3333
}
3434
},
3535
"require": {
36-
"php": "^7.4 || ~8.0.0 || ~8.1.0",
36+
"php": "~8.0.0 || ~8.1.0 || ~8.2.0",
3737
"dflydev/fig-cookies": "^2.0.1 || ^3.0.0",
3838
"mezzio/mezzio-session": "^1.4",
3939
"psr/cache": "^1.0 || ^2.0 || ^3.0",
4040
"psr/container": "^1.0 || ^2.0 || ^3.0"
4141
},
4242
"require-dev": {
43-
"laminas/laminas-cache": "^3.4",
44-
"laminas/laminas-cache-storage-adapter-apcu": "^2.1",
43+
"laminas/laminas-cache": "^3.8",
44+
"laminas/laminas-cache-storage-adapter-apcu": "^2.3",
4545
"laminas/laminas-coding-standard": "~2.4.0",
46-
"laminas/laminas-diactoros": "^2.17.0",
46+
"laminas/laminas-diactoros": "^2.21",
4747
"phpunit/phpunit": "^9.5.26",
48-
"psalm/plugin-phpunit": "^0.18.0",
49-
"vimeo/psalm": "^4.29.0"
48+
"psalm/plugin-phpunit": "^0.18.3",
49+
"vimeo/psalm": "^4.30"
5050
},
5151
"suggest": {
5252
"psr/cache-implementation": "This package requires a PSR-6 CacheItemPoolInterface implementation."

0 commit comments

Comments
 (0)