Skip to content

Commit

Permalink
[5.x] Supports PHP 8.4 (#364)
Browse files Browse the repository at this point in the history
* [5.x] Supports PHP 8.4

* wip

* wip

* wip

* wip
  • Loading branch information
crynobone authored Nov 13, 2024
1 parent 19b9aa3 commit c4508ea
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
20 changes: 12 additions & 8 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,11 @@ jobs:
strategy:
fail-fast: true
matrix:
php: [8.2, 8.3]
php: [8.2, 8.3, 8.4]
laravel: [10, 11]
exclude:
- php: 8.4
laravel: 10

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

Expand All @@ -35,20 +38,22 @@ jobs:

- name: Install dependencies
run: |
composer require "laravel/framework=^${{ matrix.laravel }}" --no-update
composer update --prefer-dist --no-interaction --no-progress
composer update --prefer-dist --no-interaction --no-progress --with="illuminate/support=^${{ matrix.laravel }}"
- name: Execute tests
run: vendor/bin/phpunit
run: vendor/bin/phpunit --display-deprecations --fail-on-deprecation

windows_tests:
runs-on: windows-latest

strategy:
fail-fast: true
matrix:
php: [8.2, 8.3]
php: [8.2, 8.3, 8.4]
laravel: [10, 11]
exclude:
- php: 8.4
laravel: 10

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

Expand All @@ -72,8 +77,7 @@ jobs:

- name: Install dependencies
run: |
composer require "laravel/framework=~${{ matrix.laravel }}" --no-update
composer update --prefer-dist --no-interaction --no-progress
composer update --prefer-dist --no-interaction --no-progress --with="illuminate/support=~${{ matrix.laravel }}"
- name: Execute tests
run: vendor/bin/phpunit
run: vendor/bin/phpunit --display-deprecations --fail-on-deprecation
2 changes: 1 addition & 1 deletion src/NewCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -904,7 +904,7 @@ protected function runOnValetOrHerd(string $command)
* @param array $env
* @return \Symfony\Component\Process\Process
*/
protected function runCommands($commands, InputInterface $input, OutputInterface $output, string $workingPath = null, array $env = [])
protected function runCommands($commands, InputInterface $input, OutputInterface $output, ?string $workingPath = null, array $env = [])
{
if (! $output->isDecorated()) {
$commands = array_map(function ($value) {
Expand Down

0 comments on commit c4508ea

Please sign in to comment.