Skip to content

Commit 4728500

Browse files
committed
refactor: ignore utils in ComposerScripts
1 parent 8289421 commit 4728500

2 files changed

Lines changed: 10 additions & 2 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
}

0 commit comments

Comments
 (0)