diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 5d5b7e9..3779ddc 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -2,9 +2,9 @@ name: Tests on: push: - branches: [ main, develop, next ] + branches: [ main, develop, next, 4.x ] pull_request: - branches: [ main, develop, next ] + branches: [ main, develop, next, 4.x ] jobs: build: diff --git a/CHANGELOG.md b/CHANGELOG.md index d4c7c46..41dbe06 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,12 @@ All notable changes to this project will be documented in this file. This projec ## Unreleased +## [5.0.1] - 2024-11-30 + +### Fixed + +- Removed more PHP 8.4 deprecation notices. + ## [5.0.0] - 2024-11-29 ### Added @@ -25,6 +31,12 @@ All notable changes to this project will be documented in this file. This projec - **BREAKING**: [#21](https://github.com/laravel-json-api/core/pull/21) The `Authorizer` contract now allows all methods to return a `bool` or an Illuminate authorization response. +## [4.3.2] - 2024-11-30 + +### Fixed + +- Remove more PHP 8.4 deprecation notices. + ## [4.3.1] - 2024-11-29 ### Fixed diff --git a/composer.json b/composer.json index a7bd0b0..bb2932a 100644 --- a/composer.json +++ b/composer.json @@ -25,7 +25,7 @@ "require": { "php": "^8.2", "ext-json": "*", - "illuminate/auth": "^11.33", + "illuminate/auth": "^11.0", "illuminate/contracts": "^11.0", "illuminate/http": "^11.0", "illuminate/pipeline": "^11.0", diff --git a/src/Core/Document/ErrorSource.php b/src/Core/Document/ErrorSource.php index 95fed0a..0b84555 100644 --- a/src/Core/Document/ErrorSource.php +++ b/src/Core/Document/ErrorSource.php @@ -19,7 +19,6 @@ class ErrorSource implements Serializable { - use Concerns\Serializable; /** @@ -71,7 +70,7 @@ public static function fromArray(array $source): self * @param string|null $pointer * @param string|null $parameter */ - public function __construct(string $pointer = null, string $parameter = null) + public function __construct(?string $pointer = null, ?string $parameter = null) { $this->pointer = $pointer; $this->parameter = $parameter; diff --git a/src/Core/JsonApiService.php b/src/Core/JsonApiService.php index ee89b5b..bf1a8cc 100644 --- a/src/Core/JsonApiService.php +++ b/src/Core/JsonApiService.php @@ -63,7 +63,7 @@ public function route(): Route * @param string|null $name * @return Server */ - public function server(string $name = null): Server + public function server(?string $name = null): Server { if (is_string($name)) { return $this->servers()->server($name);