From cbdc61d28ab0a809196ec72ef7772f4f22f59be3 Mon Sep 17 00:00:00 2001 From: mostafaznv Date: Sun, 19 Jan 2025 01:35:04 +0330 Subject: [PATCH 1/2] chore: add php 8.3 and 8.4 to `run-tests.yml` --- .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 6f420da..f8bd2a5 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -11,7 +11,7 @@ jobs: strategy: fail-fast: true matrix: - php: [8.2, 8.1, 8.0] + php: [8.4, 8.3, 8.2, 8.1, 8.0] laravel: ['9.*', '10.*', '11.*'] dependency-version: [prefer-stable] include: From 6d441ecff935b4697f0863b41a9ae0e15bb5bfce Mon Sep 17 00:00:00 2001 From: mostafaznv Date: Sun, 19 Jan 2025 01:52:25 +0330 Subject: [PATCH 2/2] fix: add ``$job` property to `QueueableAction` to prevent `deprecated dynamic properties error` on PHP >= 8.3 --- src/QueueableAction.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/QueueableAction.php b/src/QueueableAction.php index 3ff4e59..a190f70 100644 --- a/src/QueueableAction.php +++ b/src/QueueableAction.php @@ -2,10 +2,13 @@ namespace Spatie\QueueableAction; +use Illuminate\Contracts\Queue\Job; use Spatie\QueueableAction\Exceptions\InvalidConfiguration; trait QueueableAction { + public ?Job $job; + /** * @return static */