Skip to content

Commit bed43e0

Browse files
committed
Require Laravel 5.7 and PHP 7.1
Due to some changes in the Laravel internals in regard with handling eager loading, upgrading the library to Laravel 5.7 is required. Also, nobody should be on PHP < 7 anyway. So now is a good time, if any...
1 parent 351fab2 commit bed43e0

File tree

4 files changed

+8
-9
lines changed

4 files changed

+8
-9
lines changed

composer.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "kalnoy/nestedset",
3-
"description": "Nested Set Model for Laravel 4-5",
3+
"description": "Nested Set Model for Laravel 5.7 and up",
44
"keywords": ["laravel", "nested sets", "nsm", "database", "hierarchy"],
55
"license": "MIT",
66

@@ -12,10 +12,10 @@
1212
],
1313

1414
"require": {
15-
"php": ">=5.5.9",
16-
"illuminate/support": "5.2 - 5.8",
17-
"illuminate/database": "5.2 - 5.8",
18-
"illuminate/events": "5.2 - 5.8"
15+
"php": ">=7.1.3",
16+
"illuminate/support": "~5.7.0|~5.8.0",
17+
"illuminate/database": "~5.7.0|~5.8.0",
18+
"illuminate/events": "~5.7.0|~5.8.0"
1919
},
2020

2121
"autoload": {
@@ -25,7 +25,7 @@
2525
},
2626

2727
"require-dev": {
28-
"phpunit/phpunit": "4.8.*"
28+
"phpunit/phpunit": "7.*"
2929
},
3030

3131
"minimum-stability": "dev",

phpunit.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
convertWarningsToExceptions="true"
99
processIsolation="false"
1010
stopOnFailure="true"
11-
syntaxCheck="false"
1211
>
1312
<testsuites>
1413
<testsuite name="Package Test Suite">

tests/NodeTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
use Illuminate\Database\Capsule\Manager as Capsule;
44
use Kalnoy\Nestedset\NestedSet;
55

6-
class NodeTest extends PHPUnit_Framework_TestCase
6+
class NodeTest extends PHPUnit\Framework\TestCase
77
{
88
public static function setUpBeforeClass()
99
{

tests/ScopedNodeTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
use Illuminate\Database\Capsule\Manager as Capsule;
44
use Kalnoy\Nestedset\NestedSet;
55

6-
class ScopedNodeTest extends PHPUnit_Framework_TestCase
6+
class ScopedNodeTest extends PHPUnit\Framework\TestCase
77
{
88
public static function setUpBeforeClass()
99
{

0 commit comments

Comments
 (0)