Skip to content

Commit 7ee84e9

Browse files
committed
Fix CakePHP fixture for PHP 8.4+: cap php require to <8.4
cakephp/cakephp 4.4.x locks laminas/laminas-diactoros 2.26.0 which only supports ~8.0-8.3. Cap the composer.json php requirement to '>=8.1 <8.4' so composer selects PHP 8.3 from the manifest. Also revert the ineffective PHP_VERSION options.json entry — it is ignored when composer.json has a PHP constraint.
1 parent aba87dc commit 7ee84e9

3 files changed

Lines changed: 4 additions & 5 deletions

File tree

fixtures/cake/.bp-config/options.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,5 @@
33
"COMPOSER_INSTALL_OPTIONS": ["--no-interaction"],
44
"WEBDIR": "webroot",
55
"LIBDIR": "library",
6-
"PHP_EXTENSIONS": ["pdo", "pdo_sqlite", "mcrypt", "pdo_mysql"],
7-
"PHP_VERSION": "{PHP_83_LATEST}"
6+
"PHP_EXTENSIONS": ["pdo", "pdo_sqlite", "mcrypt", "pdo_mysql"]
87
}

fixtures/cake/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"type": "project",
66
"license": "MIT",
77
"require": {
8-
"php": ">=8.1",
8+
"php": ">=8.1 <8.4",
99
"cakephp/cakephp": "4.4.*",
1010
"cakephp/migrations": "^3.2",
1111
"cakephp/plugin-installer": "^1.3",
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"WEBDIR": "public",
3-
"COMPOSER_VENDOR_DIR": "vendor",
4-
"PHP_VERSION": "{PHP_83_LATEST}"
3+
"COMPOSER_VENDOR_DIR": "vendor"
4+
}
55
}

0 commit comments

Comments
 (0)