Skip to content

Commit fe4fd1c

Browse files
PHP 8.4 support
1 parent 4cdca40 commit fe4fd1c

File tree

5 files changed

+12
-8
lines changed

5 files changed

+12
-8
lines changed

.github/workflows/tests.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ on:
77
jobs:
88
tests:
99
name: PHP ${{ matrix.php }}; Laravel ${{ matrix.laravel }}
10-
runs-on: ubuntu-22.04
10+
runs-on: ubuntu-24.04
1111

1212
strategy:
1313
matrix:
14-
php: ['7.4', '8.0', '8.1', '8.2', '8.3']
14+
php: ['7.4', '8.0', '8.1', '8.2', '8.3', '8.4']
1515
laravel: ['8', '9', '10', '11']
1616
exclude:
1717
- php: '7.4'
@@ -32,6 +32,10 @@ jobs:
3232
laravel: '8'
3333
- php: '8.3'
3434
laravel: '9'
35+
- php: '8.4'
36+
laravel: '8'
37+
- php: '8.4'
38+
laravel: '9'
3539

3640
steps:
3741
- name: Checkout Code

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Laravel Exceptions was created by, and is maintained by [Graham Campbell](https:
1616

1717
## Installation
1818

19-
This version requires [PHP](https://www.php.net/) 7.4-8.3 and supports [Laravel](https://laravel.com/) 8-11.
19+
This version requires [PHP](https://www.php.net/) 7.4-8.4 and supports [Laravel](https://laravel.com/) 8-11.
2020

2121
| Exceptions | L5.5 | L5.6 | L5.7 | L5.8 | L6 | L7 | L8 | L9 | L10 | L11 |
2222
|------------|--------------------|--------------------|--------------------|--------------------|--------------------|--------------------|--------------------|--------------------|--------------------|--------------------|
@@ -26,12 +26,12 @@ This version requires [PHP](https://www.php.net/) 7.4-8.3 and supports [Laravel]
2626
| 14.1 | :x: | :x: | :x: | :x: | :x: | :white_check_mark: | :white_check_mark: | :x: | :x: | :x: |
2727
| 15.2 | :x: | :x: | :x: | :x: | :x: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :x: | :x: |
2828
| 16.0 | :x: | :x: | :x: | :x: | :x: | :x: | :white_check_mark: | :white_check_mark: | :x: | :x: |
29-
| 17.2 | :x: | :x: | :x: | :x: | :x: | :x: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
29+
| 17.3 | :x: | :x: | :x: | :x: | :x: | :x: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
3030

3131
To get the latest version, simply require the project using [Composer](https://getcomposer.org):
3232

3333
```bash
34-
$ composer require "graham-campbell/exceptions:^17.2"
34+
$ composer require "graham-campbell/exceptions:^17.3"
3535
```
3636

3737
Once installed, if you are not using automatic package discovery, then you need to register the `GrahamCampbell\Exceptions\ExceptionsServiceProvider` service provider in your `config/app.php`.

src/Identifier/HashingIdentifier.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ final class HashingIdentifier implements IdentifierInterface
4747
*
4848
* @return void
4949
*/
50-
public function __construct(int $maximum = null)
50+
public function __construct(?int $maximum = null)
5151
{
5252
$this->maximum = $maximum ?? 32;
5353
}

src/Information/FactoryInterface.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,5 @@ interface FactoryInterface
2727
*
2828
* @return \GrahamCampbell\Exceptions\Information\InformationInterface
2929
*/
30-
public function create(string $path = null): InformationInterface;
30+
public function create(?string $path = null): InformationInterface;
3131
}

src/Information/InformationFactory.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public function __construct(MergerInterface $merger)
4646
*
4747
* @return \GrahamCampbell\Exceptions\Information\InformationInterface
4848
*/
49-
public function create(string $path = null): InformationInterface
49+
public function create(?string $path = null): InformationInterface
5050
{
5151
$data = $path === null ? null : self::getDecodedContents($path);
5252

0 commit comments

Comments
 (0)