From 42db3e4e9155aaec5ddefe3840e4e7444d5d5af0 Mon Sep 17 00:00:00 2001 From: C0rTeZ13 Date: Wed, 12 Feb 2025 20:18:02 +0300 Subject: [PATCH 1/2] ensitech-273 --- .github/workflows/run-tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 5ff3c82..4db0f6e 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -12,7 +12,7 @@ jobs: strategy: fail-fast: true matrix: - php: [8.1, 8.2, 8.3] + php: [8.1, 8.2, 8.3, 8.4] laravel: [9.*, 10.*, 11.*] exclude: - laravel: 11.* From b79e8cd9c4b40f7050b32159be4ae7fd42eddae3 Mon Sep 17 00:00:00 2001 From: C0rTeZ13 Date: Wed, 12 Feb 2025 20:22:26 +0300 Subject: [PATCH 2/2] ensitech-273 fix deprecated --- src/Specification/CompositeSpecification.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Specification/CompositeSpecification.php b/src/Specification/CompositeSpecification.php index 73345af..0de8d48 100644 --- a/src/Specification/CompositeSpecification.php +++ b/src/Specification/CompositeSpecification.php @@ -34,7 +34,7 @@ public function __call(string $name, array $arguments) return $result === $this->rootSpecification ? $this : $result; } - public function nested(string $field, Specification|Closure $factory = null): static + public function nested(string $field, null|Specification|Closure $factory = null): static { $spec = $factory instanceof Specification ? $factory