From bf5d0a7b6b5b4342f4960daf2bd571b7e8cc4051 Mon Sep 17 00:00:00 2001 From: thursdaydan Date: Fri, 3 Jan 2025 22:55:42 +0000 Subject: [PATCH] Update README.md Removed the extends Job statement and the use alias from the readme example as per the following issue: https://github.com/dusterio/laravel-plain-sqs/issues/40 --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index cbf32a0..f839065 100644 --- a/README.md +++ b/README.md @@ -140,9 +140,9 @@ If a third-party application is creating custom-format JSON messages, just add a implement a handler class as follows: ```php -use Illuminate\Contracts\Queue\Job as LaravelJob; +use Illuminate\Contracts\Queue\Job; -class HandlerJob extends Job +class HandlerJob { protected $data; @@ -150,7 +150,7 @@ class HandlerJob extends Job * @param LaravelJob $job * @param array $data */ - public function handle(LaravelJob $job, array $data) + public function handle(Job $job, array $data) { // This is incoming JSON payload, already decoded to an array var_dump($data);