Skip to content

Commit

Permalink
Fix breaking change in syntax (#52)
Browse files Browse the repository at this point in the history
* Fix breaking change in syntax

* Support sensible PHP versions
  • Loading branch information
nicja committed Feb 13, 2019
1 parent 1fc7468 commit a2a8f5d
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 83 deletions.
76 changes: 0 additions & 76 deletions .styleci.yml

This file was deleted.

7 changes: 3 additions & 4 deletions .travis.yml
Expand Up @@ -2,12 +2,11 @@ language: php

php:
- 5.6
- 7.0
- 7.1
- hhvm
- nightly
- 7.2
- 7.3

before_script:
- composer install

script: ./vendor/bin/phpunit --configuration phpunit.xml
script: ./vendor/bin/phpunit --configuration phpunit.xml
1 change: 0 additions & 1 deletion README.md
Expand Up @@ -4,7 +4,6 @@ A Google Cloud Storage filesystem for Laravel.

[![Author](http://img.shields.io/badge/author-@superbalist-blue.svg?style=flat-square)](https://twitter.com/superbalist)
[![Build Status](https://img.shields.io/travis/Superbalist/laravel-google-cloud-storage/master.svg?style=flat-square)](https://travis-ci.org/Superbalist/laravel-google-cloud-storage)
[![StyleCI](https://styleci.io/repos/69335011/shield?branch=master)](https://styleci.io/repos/69335011)
[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE)
[![Packagist Version](https://img.shields.io/packagist/v/superbalist/laravel-google-cloud-storage.svg?style=flat-square)](https://packagist.org/packages/superbalist/laravel-google-cloud-storage)
[![Total Downloads](https://img.shields.io/packagist/dt/superbalist/laravel-google-cloud-storage.svg?style=flat-square)](https://packagist.org/packages/superbalist/laravel-google-cloud-storage)
Expand Down
4 changes: 4 additions & 0 deletions changelog.md
@@ -1,5 +1,9 @@
# Changelog

## 2.1.2 - 2019-02-13

* Replace null coalescing operator with backwards compatible laravel `array_get`

## 2.1.1 - 2019-02-11

* Fix `Call to undefined method Superbalist\LaravelGoogleCloudStorage\GoogleCloudStorageServiceProvider::createCacheStore()` bug when using caching
Expand Down
4 changes: 2 additions & 2 deletions src/GoogleCloudStorageServiceProvider.php
Expand Up @@ -51,8 +51,8 @@ protected function createCacheStore($config)

return new Cache(
$this->app['cache']->store($config['store']),
$config['prefix'] ?? 'flysystem',
$config['expire'] ?? null
array_get($config, 'prefix', 'flysystem'),
array_get($config, 'expire')
);
}

Expand Down

0 comments on commit a2a8f5d

Please sign in to comment.