Skip to content

Commit fb0ccd3

Browse files
committed
Merge pull request lazychaser#48 from JN-Jones/master
Laravel 5.1 support
2 parents 186c4fc + 56a1eab commit fb0ccd3

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313

1414
"require": {
1515
"php": ">=5.4.0",
16-
"illuminate/support": ">=4.1,<5.1.0",
17-
"illuminate/database": ">=4.1,<5.1.0",
18-
"illuminate/events": ">=4.1,<5.1.0"
16+
"illuminate/support": ">=4.1,<5.2.0",
17+
"illuminate/database": ">=4.1,<5.2.0",
18+
"illuminate/events": ">=4.1,<5.2.0"
1919
},
2020

2121
"autoload": { "psr-4": { "Kalnoy\\Nestedset\\": "src/" } }

src/Node.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -817,7 +817,7 @@ public function newFromBuilder($attributes = array(), $connection = null)
817817
* @param Node $parent
818818
*
819819
*/
820-
public static function create(array $attributes, Node $parent = null)
820+
public static function create(array $attributes = array(), Node $parent = null)
821821
{
822822
$children = array_pull($attributes, 'children');
823823

@@ -1190,4 +1190,4 @@ public function getBounds()
11901190
{
11911191
return [ $this->getLft(), $this->getRgt() ];
11921192
}
1193-
}
1193+
}

0 commit comments

Comments
 (0)