Skip to content

Commit

Permalink
Merge pull request #61 from erikaraujo/bump-laravel-version-compatibi…
Browse files Browse the repository at this point in the history
…lity

Bumps the Laravel Compatibility to Laravel 10
  • Loading branch information
dusterio authored Apr 28, 2023
2 parents f64447c + 32ad3a7 commit 4386000
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
9 changes: 4 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,13 @@
],
"require": {
"php": ">=5.5.0",
"illuminate/support": "5.*|^6.0|^7.0|^8.0|^9.0",
"illuminate/queue": "5.*|^6.0|^7.0|^8.0|^9.0",
"illuminate/bus": "5.*|^6.0|^7.0|^8.0|^9.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",
"aws/aws-sdk-php": "~3.0"
},
"require-dev": {
"phpunit/phpunit": "3.7.*|^9.5.10",
"codeclimate/php-test-reporter": "dev-master"
"phpunit/phpunit": "3.7.*|^9.5.10|^10.0"
},
"autoload": {
"psr-4": {
Expand Down
5 changes: 4 additions & 1 deletion src/Sqs/Queue.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,10 @@ 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]*\..*)/', $this->container->version())) {
if (preg_match(
'/(5\.[4-8]\..*)|(6\.[0-9]*\..*)|(7\.[0-9]*\..*)|(8\.[0-9]*\..*)|(9\.[0-9]*\..*)|(10\.[0-9]*\..*)/',
$this->container->version())
) {
return new SqsJob($this->container, $this->sqs, $response, $this->connectionName, $queue);
}

Expand Down
4 changes: 3 additions & 1 deletion tests/PlainSqs/QueueTest.php
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
<?php

namespace Dusterio\PlainSqs\Tests;

use Aws\Sqs\SqsClient;
use Dusterio\PlainSqs\Jobs\DispatcherJob;
use Dusterio\PlainSqs\Sqs\Queue;
use PHPUnit\Framework\TestCase;

/**
* Class QueueTest
* @package Dusterio\PlainSqs\Tests
*/
class QueueTest extends \PHPUnit_Framework_TestCase
class QueueTest extends TestCase
{
/**
* @test
Expand Down

0 comments on commit 4386000

Please sign in to comment.