Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Laravel 9 Support #207

Closed
wants to merge 13 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 12 additions & 16 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
dist: trusty
dist: xenial

cache:
directories:
Expand All @@ -11,38 +11,34 @@ matrix:
- php: nightly

include:
- php: 5.5.9
env: LARAVEL="5.1.*" LUMEN="5.1.*"
- php: hhvm-3.18
env: LARAVEL="5.1.*" LUMEN="5.1.*"
- php: 7.0
env: LARAVEL="5.5.*" LUMEN="5.5.*"
- php: 7.1
env: LARAVEL="^5.5" LUMEN="^5.5"
env: LARAVEL="^5.6" LUMEN="^5.6"
- php: 7.2
env: LARAVEL="^5.5" LUMEN="^5.5"
env: LARAVEL="^5.6" LUMEN="^5.6"
- php: 7.2
env: LARAVEL="^6.0" LUMEN="^6.0"
- php: 7.2
env: LARAVEL="^7.0" LUMEN="^7.0@dev"
env: LARAVEL="^7.0" LUMEN="^7.0"
- php: 7.3
env: LARAVEL="^6.0" LUMEN="^6.0"
- php: 7.3
env: LARAVEL="^7.0" LUMEN="^7.0"
- php: 7.3
env: LARAVEL="^8.0" LUMEN="^8.0@dev"
env: LARAVEL="^8.0" LUMEN="^8.0"
- php: 7.4
env: LARAVEL="^6.0" LUMEN="^6.0"
- php: 7.4
env: LARAVEL="^7.0" LUMEN="^7.0"
- php: 7.4
env: LARAVEL="^8.0" LUMEN="^8.0@dev"
- php: nightly
env: LARAVEL="^6.0" LUMEN="^6.0"
env: LARAVEL="^8.0" LUMEN="^8.0"
- php: 8.0
env: LARAVEL="^8.0" LUMEN="^8.0"
- php: 8.0
env: LARAVEL="^9.0" LUMEN="^9.0@dev"
- php: nightly
env: LARAVEL="^7.0" LUMEN="^7.0"
env: LARAVEL="^8.0" LUMEN="^8.0"
- php: nightly
env: LARAVEL="^8.0" LUMEN="^8.0@dev"
env: LARAVEL="^9.0" LUMEN="^9.0@dev"

before_install:
- echo "memory_limit=3G" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# AWS Service Provider for Laravel 5/6/7/8
# AWS Service Provider for Laravel 5/6/7/8/9

[![@awsforphp on Twitter](http://img.shields.io/badge/twitter-%40awsforphp-blue.svg?style=flat)](https://twitter.com/awsforphp)
[![Build Status](https://img.shields.io/travis/aws/aws-sdk-php-laravel.svg)](https://travis-ci.org/aws/aws-sdk-php-laravel)
Expand All @@ -14,7 +14,7 @@ PHP and Laravel 5.1.

**Major Versions:**

* **3.x** (YOU ARE HERE) - For `laravel/framework:~5.1|~6.0|~7.0|~8.0` and `aws/aws-sdk-php:~3.0`
* **3.x** (YOU ARE HERE) - For `laravel/framework:~5.1|~6.0|~7.0|~8.0|~9.0` and `aws/aws-sdk-php:~3.0`
* **2.x** ([2.0 branch](https://github.com/aws/aws-sdk-php-laravel/tree/2.0)) - For `laravel/framework:5.0.*` and `aws/aws-sdk-php:~2.4`
* **1.x** ([1.0 branch](https://github.com/aws/aws-sdk-php-laravel/tree/1.0)) - For `laravel/framework:4.*` and `aws/aws-sdk-php:~2.4`

Expand Down
10 changes: 5 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "aws/aws-sdk-php-laravel",
"homepage": "http://aws.amazon.com/sdkforphp2",
"description": "A simple Laravel 5/6/7/8 service provider for including the AWS SDK for PHP.",
"keywords": ["laravel", "laravel 5", "laravel 6", "laravel 7", "laravel 8", "aws", "amazon", "sdk", "s3", "ec2", "dynamodb"],
"description": "A simple Laravel 5/6/7/8/9 service provider for including the AWS SDK for PHP.",
"keywords": ["laravel", "laravel 5", "laravel 6", "laravel 7", "laravel 8", "laravel 9", "aws", "amazon", "sdk", "s3", "ec2", "dynamodb"],
"type":"library",
"license":"Apache-2.0",
"authors":[
Expand All @@ -12,12 +12,12 @@
}
],
"require": {
"php": ">=5.5.9",
"php": ">=7.1.0",
"aws/aws-sdk-php": "~3.0",
"illuminate/support": "^5.1 || ^6.0 || ^7.0 || ^8.0"
"illuminate/support": "^5.1 || ^6.0 || ^7.0 || ^8.0 || ^9.0"
},
"require-dev": {
"phpunit/phpunit": "^4.0 || ^5.0",
"phpunit/phpunit": "^7.0 || ^8.0 || ^9.0",
"vlucas/phpdotenv": "^1.0 || ^2.0 || ^3.0 || ^4.0 || ^5.0"
},
"suggest": {
Expand Down
5 changes: 3 additions & 2 deletions tests/AwsServiceProviderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
use Aws\Laravel\AwsFacade as AWS;
use Aws\Laravel\AwsServiceProvider;
use Illuminate\Container\Container;
use PHPUnit\Framework\TestCase;

abstract class AwsServiceProviderTest extends \PHPUnit_Framework_TestCase
abstract class AwsServiceProviderTest extends TestCase
{

public function testFacadeCanBeResolvedToServiceInstance()
Expand Down Expand Up @@ -52,7 +53,7 @@ public function testVersionInformationIsProvidedToSdkUserAgent()
$config = $app['config']->get('aws');

$this->assertArrayHasKey('ua_append', $config);
$this->assertInternalType('array', $config['ua_append']);
$this->assertIsArray($config['ua_append']);
$this->assertNotEmpty($config['ua_append']);
$this->assertNotEmpty(array_filter($config['ua_append'], function ($ua) {
return false !== strpos($ua, AwsServiceProvider::VERSION);
Expand Down
2 changes: 1 addition & 1 deletion tests/LaravelAwsServiceProviderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

class LaravelAwsServiceProviderTest extends AwsServiceProviderTest
{
public function setUp()
public function setUp() : void
{
if (!class_exists(Application::class)) {
$this->markTestSkipped();
Expand Down
2 changes: 1 addition & 1 deletion tests/LumenAwsServiceProviderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

class LumenAwsServiceProviderTest extends AwsServiceProviderTest
{
public function setUp()
public function setUp() : void
{
if (!class_exists(Application::class)) {
$this->markTestSkipped();
Expand Down