Skip to content

Commit 7abd56c

Browse files
Add support for PHP 8.4 (#29)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Nathan Boiron <[email protected]>
1 parent 9f684cc commit 7abd56c

File tree

4 files changed

+4
-9
lines changed

4 files changed

+4
-9
lines changed

.github/workflows/run-tests.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
strategy:
99
fail-fast: true
1010
matrix:
11-
php: [ 8.2, 8.3 ]
11+
php: [ 8.2, 8.3, 8.4 ]
1212
dependency-version: [ prefer-lowest, prefer-stable ]
1313

1414
name: P${{ matrix.php }} - ${{ matrix.dependency-version }}
@@ -22,7 +22,6 @@ jobs:
2222
with:
2323
php-version: ${{ matrix.php }}
2424
coverage: none
25-
tools: composer:v2
2625

2726
- name: Cache dependencies
2827
uses: actions/cache@v4

Makefile

-4
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,3 @@ coverage: ## to perform unit tests with code coverage.
1919
.PHONY: phpstan
2020
phpstan: ## to run PHPStan
2121
php vendor/bin/phpstan analyse
22-
23-
.PHONY: infection
24-
infection: ## to run Infection
25-
php vendor/bin/infection --threads=max

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
}
1919
],
2020
"require": {
21-
"php": "8.2.* || 8.3.*"
21+
"php": "8.2.* || 8.3.* || 8.4.*"
2222
},
2323
"autoload": {
2424
"psr-4": {

src/MagicConstant.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ final public function __construct(mixed $value)
2727
$this->setValue($value);
2828
}
2929

30-
public function getValue(string|int $format = null): mixed
30+
public function getValue(string|int|null $format = null): mixed
3131
{
3232
if (empty($format)) {
3333
return $this->value;
@@ -163,7 +163,7 @@ public static function keys(): array
163163
/**
164164
* @return static[]
165165
*/
166-
public static function values(string $pattern = null): array
166+
public static function values(?string $pattern = null): array
167167
{
168168
$out = [];
169169

0 commit comments

Comments
 (0)