Skip to content

Commit 183d2a6

Browse files
committed
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 phpGH-21473
1 parent b8b5fb0 commit 183d2a6

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.github/matrix.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ function select_jobs($repository, $trigger, $nightly, $labels, $php_version, $re
8181
? ['type' => ['asan', 'verify_type_inference']]
8282
: ['type' => ['asan']];
8383
$jobs['COMMUNITY']['config']['symfony_version'] = version_compare($php_version, '8.4', '>=') ? '8.1' : '7.4';
84+
$jobs['COMMUNITY']['config']['laravel_version'] = version_compare($php_version, '8.3', '>=') ? '13.x' : '12.x';
8485
}
8586
if (($all_jobs && $ref === 'master') || $test_coverage) {
8687
$jobs['COVERAGE'] = true;

.github/workflows/test-suite.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,7 @@ jobs:
506506
- name: Test Laravel
507507
if: ${{ !cancelled() }}
508508
run: |
509-
git clone https://github.com/laravel/framework.git --depth=1
509+
git clone https://github.com/laravel/framework.git --depth=1 --branch="${{ fromJson(inputs.branch).jobs.COMMUNITY.config.laravel_version }}"
510510
cd framework
511511
git rev-parse HEAD
512512
php /usr/bin/composer install --no-progress --ignore-platform-req=php+

0 commit comments

Comments
 (0)