mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
Fix Laravel build for PHP 8.2
Laravel 13.x dropped support for PHP 8.2. Fall back to 12.x for 8.2. Closes GH-21473
This commit is contained in:
1
.github/matrix.php
vendored
1
.github/matrix.php
vendored
@@ -81,6 +81,7 @@ function select_jobs($repository, $trigger, $nightly, $labels, $php_version, $re
|
||||
? ['type' => ['asan', 'verify_type_inference']]
|
||||
: ['type' => ['asan']];
|
||||
$jobs['COMMUNITY']['config']['symfony_version'] = version_compare($php_version, '8.4', '>=') ? '8.1' : '7.4';
|
||||
$jobs['COMMUNITY']['config']['laravel_version'] = version_compare($php_version, '8.3', '>=') ? '13.x' : '12.x';
|
||||
}
|
||||
if (($all_jobs && $ref === 'master') || $test_coverage) {
|
||||
$jobs['COVERAGE'] = true;
|
||||
|
||||
2
.github/workflows/test-suite.yml
vendored
2
.github/workflows/test-suite.yml
vendored
@@ -506,7 +506,7 @@ jobs:
|
||||
- name: Test Laravel
|
||||
if: ${{ !cancelled() }}
|
||||
run: |
|
||||
git clone https://github.com/laravel/framework.git --depth=1
|
||||
git clone https://github.com/laravel/framework.git --depth=1 --branch="${{ fromJson(inputs.branch).jobs.COMMUNITY.config.laravel_version }}"
|
||||
cd framework
|
||||
git rev-parse HEAD
|
||||
php /usr/bin/composer install --no-progress --ignore-platform-req=php+
|
||||
|
||||
Reference in New Issue
Block a user