Skip to content

Commit

Permalink
add support for Laravel 5.8
Browse files Browse the repository at this point in the history
  • Loading branch information
freekmurze committed Feb 27, 2019
1 parent 05f2554 commit c904325
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 8 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Expand Up @@ -2,6 +2,10 @@

All notable changes to `laravel-tags` will be documented in this file

## 2.2.2 - 2019-02-27

- add support for Laravel 5.8

## 2.2.1 - 2019-01-19

- use morph map name for taggable_type if it exists
Expand Down
6 changes: 3 additions & 3 deletions composer.json
Expand Up @@ -17,13 +17,13 @@
],
"require": {
"php": "^7.1",
"laravel/framework": "~5.7.13",
"laravel/framework": "~5.7.13|~5.8",
"spatie/eloquent-sortable": "^3.4",
"spatie/laravel-translatable": "^3.0"
},
"require-dev": {
"phpunit/phpunit": "^7.4",
"orchestra/testbench": "~3.7.0"
"phpunit/phpunit": "^7.4|^8.0",
"orchestra/testbench": "~3.7.0|~3.8.0"
},
"autoload": {
"psr-4": {
Expand Down
2 changes: 1 addition & 1 deletion tests/HasTagsScopesTest.php
Expand Up @@ -11,7 +11,7 @@ class HasTagsScopesTest extends TestCase
/** @var \Spatie\Tags\Test\TestModel */
protected $testModel;

public function setUp()
public function setUp(): void
{
parent::setUp();

Expand Down
2 changes: 1 addition & 1 deletion tests/HasTagsTest.php
Expand Up @@ -13,7 +13,7 @@ class HasTagsTest extends TestCase
/** @var \Spatie\Tags\Test\TestModel */
protected $testModel;

public function setUp()
public function setUp(): void
{
parent::setUp();

Expand Down
2 changes: 1 addition & 1 deletion tests/TagTest.php
Expand Up @@ -7,7 +7,7 @@

class TagTest extends TestCase
{
public function setUp()
public function setUp(): void
{
parent::setUp();

Expand Down
5 changes: 3 additions & 2 deletions tests/TestCase.php
Expand Up @@ -4,14 +4,15 @@

use DB;
use Dotenv\Dotenv;
use Dotenv\Loader;
use Spatie\Tags\TagsServiceProvider;
use Illuminate\Database\Schema\Blueprint;
use Orchestra\Testbench\TestCase as Orchestra;
use Spatie\Translatable\TranslatableServiceProvider;

abstract class TestCase extends Orchestra
{
public function setUp()
public function setUp(): void
{
parent::setUp();

Expand All @@ -33,7 +34,7 @@ protected function getEnvironmentSetUp($app)
{
//If we're not in travis, load our local .env file
if (empty(getenv('CI'))) {
$dotenv = new Dotenv(realpath(__DIR__.'/..'));
$dotenv = Dotenv::create(realpath(__DIR__.'/..'));
$dotenv->load();
}

Expand Down

0 comments on commit c904325

Please sign in to comment.