Skip to content

Commit 9efa7bd

Browse files
authored
[1.x] Supports PHP 8.4 (#124)
* Fix code styling * [1.x] Supports PHP 8.4 * Update tests.yml * Update tests.yml --------- Co-authored-by: crynobone <[email protected]>
1 parent 135e6b3 commit 9efa7bd

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

.github/workflows/tests.yml

+8-6
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,11 @@ jobs:
1919
strategy:
2020
fail-fast: true
2121
matrix:
22-
php: [8.1, 8.2, 8.3]
22+
php: [8.1, 8.2, 8.3, 8.4]
2323
laravel: [10, 11]
2424
exclude:
25+
- php: 8.4
26+
laravel: 10
2527
- php: 8.1
2628
laravel: 11
2729

@@ -42,8 +44,7 @@ jobs:
4244

4345
- name: Install dependencies
4446
run: |
45-
composer require "illuminate/contracts=^${{ matrix.laravel }}" --no-update
46-
composer update --prefer-dist --no-interaction --no-progress
47+
composer update --prefer-dist --no-interaction --no-progress --with="laravel/framework:^${{ matrix.laravel }}"
4748
4849
- name: Execute tests
4950
run: vendor/bin/pest
@@ -54,9 +55,11 @@ jobs:
5455
strategy:
5556
fail-fast: true
5657
matrix:
57-
php: [8.1, 8.2, 8.3]
58+
php: [8.1, 8.2, 8.3, 8.4]
5859
laravel: [10, 11]
5960
exclude:
61+
- php: 8.4
62+
laravel: 10
6063
- php: 8.1
6164
laravel: 11
6265

@@ -86,8 +89,7 @@ jobs:
8689

8790
- name: Install dependencies
8891
run: |
89-
composer require "illuminate/contracts=~${{ matrix.laravel }}" --no-update
90-
composer update --prefer-dist --no-interaction --no-progress
92+
composer update --prefer-dist --no-interaction --no-progress --with="laravel/framework:~${{ matrix.laravel }}"
9193
9294
- name: Execute tests
9395
run: vendor/bin/pest

tests/Feature/Actions/ResolveListenersTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
use Livewire\Volt\Component;
66
use Livewire\Volt\InlineListenerName;
77

8-
use function Livewire\Volt\{on};
8+
use function Livewire\Volt\on;
99

1010
it('resolves the registered listeners', function () {
1111
$context = CompileContext::instance();

0 commit comments

Comments
 (0)