Skip to content

Commit

Permalink
Add PHP 8.4 support
Browse files Browse the repository at this point in the history
  • Loading branch information
veewee committed Oct 25, 2024
1 parent 33fff77 commit 4fa46ce
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 6 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/analyzers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ jobs:
strategy:
matrix:
operating-system: [ubuntu-latest]
php-versions: ['8.1', '8.2', '8.3']
php-versions: ['8.1', '8.2', '8.3', '8.4']
composer-options: ['--ignore-platform-req=php+']
fail-fast: false
name: PHP ${{ matrix.php-versions }} @ ${{ matrix.operating-system }}
steps:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/code-style.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ jobs:
strategy:
matrix:
operating-system: [ubuntu-latest]
php-versions: ['8.1', '8.2', '8.3']
php-versions: ['8.1', '8.2', '8.3', '8.4']
composer-options: ['--ignore-platform-req=php+']
fail-fast: false
name: PHP ${{ matrix.php-versions }} @ ${{ matrix.operating-system }}
steps:
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ jobs:
strategy:
matrix:
operating-system: [ubuntu-latest]
php-versions: ['8.1', '8.2', '8.3']
php-versions: ['8.1', '8.2', '8.3', '8.4']
composer-options: ['--ignore-platform-req=php+']
experimental: [false]
fail-fast: false
name: PHP ${{ matrix.php-versions }} @ ${{ matrix.operating-system }}
Expand All @@ -27,8 +28,9 @@ jobs:
ini-values: error_reporting=E_ALL
extensions: pcov, mbstring, posix
- name: Install dependencies
run: composer update --prefer-dist --no-progress --no-suggest
run: composer update --prefer-dist --no-progress --no-suggest ${{ matrix.composer-options }}
- name: Run the tests
run: composer run tests
- name: Check tests quality
run: composer run testquality
continue-on-error: ${{ matrix.php-versions == '8.4' }} # Infection is not ready yet.
1 change: 1 addition & 0 deletions .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,6 @@
'strict_comparison' => true,
'strict_param' => true,
'native_function_invocation' => true,
'nullable_type_declaration_for_default_null_value' => true,
])
;
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
}
],
"require": {
"php": "~8.1.0 || ~8.2.0 || ~8.3.0 ",
"php": "~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0",
"azjezz/psl": "^2.7 || ^3.0"
},
"require-dev": {
Expand Down
2 changes: 1 addition & 1 deletion src/Iso/object_data.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*
* @psalm-pure
*/
function object_data(string $className, Lens $accessor = null): Iso
function object_data(string $className, ?Lens $accessor = null): Iso
{
/** @var Lens<S, A> $typedAccessor */
$typedAccessor = $accessor ?? properties();
Expand Down

0 comments on commit 4fa46ce

Please sign in to comment.