Skip to content

Commit c4508ea

Browse files
authored
[5.x] Supports PHP 8.4 (#364)
* [5.x] Supports PHP 8.4 * wip * wip * wip * wip
1 parent 19b9aa3 commit c4508ea

File tree

2 files changed

+13
-9
lines changed

2 files changed

+13
-9
lines changed

.github/workflows/tests.yml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,11 @@ jobs:
1616
strategy:
1717
fail-fast: true
1818
matrix:
19-
php: [8.2, 8.3]
19+
php: [8.2, 8.3, 8.4]
2020
laravel: [10, 11]
21+
exclude:
22+
- php: 8.4
23+
laravel: 10
2124

2225
name: PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }}
2326

@@ -35,20 +38,22 @@ jobs:
3538

3639
- name: Install dependencies
3740
run: |
38-
composer require "laravel/framework=^${{ matrix.laravel }}" --no-update
39-
composer update --prefer-dist --no-interaction --no-progress
41+
composer update --prefer-dist --no-interaction --no-progress --with="illuminate/support=^${{ matrix.laravel }}"
4042
4143
- name: Execute tests
42-
run: vendor/bin/phpunit
44+
run: vendor/bin/phpunit --display-deprecations --fail-on-deprecation
4345

4446
windows_tests:
4547
runs-on: windows-latest
4648

4749
strategy:
4850
fail-fast: true
4951
matrix:
50-
php: [8.2, 8.3]
52+
php: [8.2, 8.3, 8.4]
5153
laravel: [10, 11]
54+
exclude:
55+
- php: 8.4
56+
laravel: 10
5257

5358
name: PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }} - Windows
5459

@@ -72,8 +77,7 @@ jobs:
7277

7378
- name: Install dependencies
7479
run: |
75-
composer require "laravel/framework=~${{ matrix.laravel }}" --no-update
76-
composer update --prefer-dist --no-interaction --no-progress
80+
composer update --prefer-dist --no-interaction --no-progress --with="illuminate/support=~${{ matrix.laravel }}"
7781
7882
- name: Execute tests
79-
run: vendor/bin/phpunit
83+
run: vendor/bin/phpunit --display-deprecations --fail-on-deprecation

src/NewCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -904,7 +904,7 @@ protected function runOnValetOrHerd(string $command)
904904
* @param array $env
905905
* @return \Symfony\Component\Process\Process
906906
*/
907-
protected function runCommands($commands, InputInterface $input, OutputInterface $output, string $workingPath = null, array $env = [])
907+
protected function runCommands($commands, InputInterface $input, OutputInterface $output, ?string $workingPath = null, array $env = [])
908908
{
909909
if (! $output->isDecorated()) {
910910
$commands = array_map(function ($value) {

0 commit comments

Comments
 (0)