Skip to content

Commit e8ae086

Browse files
committed
Ignore platform reqs when dumping the autoloader too
`composer install` was relaxed with --ignore-platform-reqs but the following `composer dump-autoload -o` was not, so it could still abort on a platform mismatch and bake a strict vendor/composer/platform_check.php. Pass the flag to the dump step as well, in install-osx and self-update.php. Assisted-by: Claude Code:claude-opus-4-8
1 parent ac057e8 commit e8ae086

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

install-osx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22
ulimit -n 8192
33
composer install --ignore-platform-reqs
4-
composer dump-autoload -o
4+
composer dump-autoload -o --ignore-platform-reqs
55
sudo mkdir -p /usr/local/bin
66
script_path=$(pwd)
77
sudo ln -sf "$script_path"/team51-cli.php /usr/local/bin/team51

self-update.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,6 @@ function team51_cli_update_last_update_check_timestamp(): void {
163163

164164
// Update Composer.
165165
team51_cli_run_system_command( sprintf( 'composer install --ignore-platform-reqs --working-dir %s --no-interaction', TEAM51_CLI_ROOT_DIR ) );
166-
team51_cli_run_system_command( sprintf( 'composer dump-autoload -o --working-dir %s --no-interaction', TEAM51_CLI_ROOT_DIR ) );
166+
team51_cli_run_system_command( sprintf( 'composer dump-autoload -o --ignore-platform-reqs --working-dir %s --no-interaction', TEAM51_CLI_ROOT_DIR ) );
167167

168168
// endregion

0 commit comments

Comments
 (0)