From b68b5448a91fa032fd197d4f443731690237a58c Mon Sep 17 00:00:00 2001 From: Bobby Piper Date: Tue, 26 Mar 2024 10:27:12 +0000 Subject: [PATCH] Laravel 11.x Compatibility --- composer.json | 6 +++--- src/Sqs/Queue.php | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/composer.json b/composer.json index 5ae659b..13e9ccf 100644 --- a/composer.json +++ b/composer.json @@ -20,9 +20,9 @@ ], "require": { "php": ">=5.5.0", - "illuminate/support": "5.*|^6.0|^7.0|^8.0|^9.0|^10.0", - "illuminate/queue": "5.*|^6.0|^7.0|^8.0|^9.0|^10.0", - "illuminate/bus": "5.*|^6.0|^7.0|^8.0|^9.0|^10.0", + "illuminate/support": "5.*|^6.0|^7.0|^8.0|^9.0|^10.0|^11.0", + "illuminate/queue": "5.*|^6.0|^7.0|^8.0|^9.0|^10.0|^11.0", + "illuminate/bus": "5.*|^6.0|^7.0|^8.0|^9.0|^10.0|^11.0", "aws/aws-sdk-php": "~3.0" }, "require-dev": { diff --git a/src/Sqs/Queue.php b/src/Sqs/Queue.php index 219128f..dd51b5c 100644 --- a/src/Sqs/Queue.php +++ b/src/Sqs/Queue.php @@ -73,7 +73,7 @@ public function pop($queue = null) $response = $this->modifyPayload($response['Messages'][0], $class); if (preg_match( - '/(5\.[4-8]\..*)|(6\.[0-9]*\..*)|(7\.[0-9]*\..*)|(8\.[0-9]*\..*)|(9\.[0-9]*\..*)|(10\.[0-9]*\..*)/', + '/(5\.[4-8]\..*)|(6\.[0-9]*\..*)|(7\.[0-9]*\..*)|(8\.[0-9]*\..*)|(9\.[0-9]*\..*)|(10\.[0-9]*\..*)|(11\.[0-9]*\..*)/', $this->container->version()) ) { return new SqsJob($this->container, $this->sqs, $response, $this->connectionName, $queue);