Fix: Use PHP 7.4 (composer:2.0) for Laravel 7.x compatibility
Some checks failed
continuous-integration/drone/push Build is failing

- Changed from composer:2.2 (PHP 8.1) to composer:2.0 (PHP 7.4)
- Removed --ignore-platform-reqs flag as it's no longer needed
- PHP 7.4 is fully compatible with Laravel 7.x without deprecation warnings
- This fixes the 'artisan package:discover' error caused by PHP 8.1 strict typing
This commit is contained in:
Joris Slagter
2025-12-02 19:58:56 +01:00
parent ef0cc14c9d
commit 4a57aacdde

View File

@@ -5,9 +5,9 @@ name: default
steps: steps:
# Step 1: Install dependencies and run tests # Step 1: Install dependencies and run tests
- name: test - name: test
image: composer:2.2 image: composer:2.0
commands: commands:
- composer install --prefer-dist --no-progress --no-interaction --ignore-platform-reqs - composer install --prefer-dist --no-progress --no-interaction
- composer validate --strict - composer validate --strict
- echo "✓ Composer validation passed" - echo "✓ Composer validation passed"
# Uncomment when tests are ready: # Uncomment when tests are ready: