Skip to content

Commit e2f6696

Browse files
committed
Merge branch 'release/5.0.1'
2 parents f3a4b75 + 342a7aa commit e2f6696

File tree

6 files changed

+18
-7
lines changed

6 files changed

+18
-7
lines changed

Diff for: .github/workflows/tests.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: Tests
22

33
on:
44
push:
5-
branches: [ main, develop ]
5+
branches: [ main, develop, 4.x ]
66
pull_request:
7-
branches: [ main, develop ]
7+
branches: [ main, develop, 4.x ]
88

99
jobs:
1010
build:

Diff for: CHANGELOG.md

+12
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,25 @@ All notable changes to this project will be documented in this file. This projec
55

66
## Unreleased
77

8+
## [5.0.1] - 2024-11-30
9+
10+
### Fixed
11+
12+
- Removed more PHP 8.4 deprecation notices.
13+
814
## [5.0.0] - 2024-11-29
915

1016
### Added
1117

1218
- **BREAKING**: [#21](https://github.com/laravel-json-api/core/pull/21) The `Authorizer` contract now allows all methods
1319
to return a `bool` or an Illuminate authorization response.
1420

21+
## [4.3.2] - 2024-11-30
22+
23+
### Fixed
24+
25+
- Remove more PHP 8.4 deprecation notices.
26+
1527
## [4.3.1] - 2024-11-29
1628

1729
### Fixed

Diff for: composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"require": {
2626
"php": "^8.2",
2727
"ext-json": "*",
28-
"illuminate/auth": "^11.33",
28+
"illuminate/auth": "^11.0",
2929
"illuminate/contracts": "^11.0",
3030
"illuminate/http": "^11.0",
3131
"illuminate/support": "^11.0"

Diff for: src/Core/Document/ErrorSource.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919

2020
class ErrorSource implements Serializable
2121
{
22-
2322
use Concerns\Serializable;
2423

2524
/**
@@ -71,7 +70,7 @@ public static function fromArray(array $source): self
7170
* @param string|null $pointer
7271
* @param string|null $parameter
7372
*/
74-
public function __construct(string $pointer = null, string $parameter = null)
73+
public function __construct(?string $pointer = null, ?string $parameter = null)
7574
{
7675
$this->pointer = $pointer;
7776
$this->parameter = $parameter;

Diff for: src/Core/JsonApiService.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public function route(): Route
6363
* @param string|null $name
6464
* @return Server
6565
*/
66-
public function server(string $name = null): Server
66+
public function server(?string $name = null): Server
6767
{
6868
if (is_string($name)) {
6969
return $this->servers()->server($name);

Diff for: src/Core/Schema/Schema.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ public function uriType(): string
223223
/**
224224
* @inheritDoc
225225
*/
226-
public function url($extra = [], bool $secure = null): string
226+
public function url($extra = [], ?bool $secure = null): string
227227
{
228228
$extra = Arr::wrap($extra);
229229

0 commit comments

Comments
 (0)