Skip to content

Commit c491d13

Browse files
committed
refactor: ignore utils in ComposerScripts
1 parent 4a3727c commit c491d13

3 files changed

Lines changed: 11 additions & 3 deletions

File tree

‎composer.json‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,7 @@
9393
"CodeIgniter\\ComposerScripts::postUpdate"
9494
],
9595
"post-autoload-dump": [
96-
"@php -r \"if (PHP_VERSION_ID >= 80600) { echo '@todo Remove \"--ignore-platform-req=php\" once deps catch up.', PHP_EOL; }\"",
97-
"@composer update --ansi --working-dir=utils --ignore-platform-req=php"
96+
"CodeIgniter\\ComposerScripts::postUtils"
9897
],
9998
"analyze": [
10099
"Composer\\Config::disableProcessTimeout",

‎system/ComposerScripts.php‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,4 +171,13 @@ private static function copyKintInitFiles(): void
171171
@copy($originDir . $kintInit, $targetDir . $kintInit);
172172
}
173173
}
174+
175+
private static function postUtils(): void
176+
{
177+
if (PHP_VERSION_ID >= 80600) {
178+
passthru('composer update --ansi --working-dir=utils --ignore-platform-req=php');
179+
} else {
180+
passthru('composer update --ansi --working-dir=utils');
181+
}
182+
}
174183
}

‎utils/composer.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"ergebnis/composer-normalize": "^2.56",
66
"friendsofphp/php-cs-fixer": "^3.76",
77
"nexusphp/cs-config": "^3.26",
8-
"vimeo/psalm": "^7.0.1"
8+
"vimeo/psalm": "^6.14"
99
},
1010
"autoload": {
1111
"psr-4": {

0 commit comments

Comments
 (0)