Skip to content

Commit 712dabd

Browse files
committed
Allow l5.3
1 parent 68bf475 commit 712dabd

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

composer.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,12 @@
2121
"autoload": { "psr-4": { "Kalnoy\\Nestedset\\": "src/" } },
2222

2323
"require-dev": {
24-
"phpunit/phpunit": ">=4.8"
24+
"phpunit/phpunit": "4.8.*"
2525
},
2626

2727
"extra": {
2828
"branch-alias": {
2929
"dev-master": "v4.1.x-dev"
3030
}
31-
},
32-
33-
"minimum-stability": "dev"
31+
}
3432
}

src/NodeTrait.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ public function refreshNode()
240240
$attributes = $this->newNestedSetQuery()->getNodeData($this->getKey());
241241

242242
$this->attributes = array_merge($this->attributes, $attributes);
243-
$this->original = array_merge($this->original, $attributes);
243+
// $this->original = array_merge($this->original, $attributes);
244244
}
245245

246246
/**
@@ -297,7 +297,7 @@ public function siblingsAndSelf()
297297
return $this->newScopedQuery()
298298
->where($this->getParentIdName(), '=', $this->getParentId());
299299
}
300-
300+
301301
/**
302302
* Get query for the node siblings and the node itself.
303303
*
@@ -309,7 +309,7 @@ public function getSiblingsAndSelf(array $columns = [ '*' ])
309309
{
310310
return $this->siblingsAndSelf()->get($columns);
311311
}
312-
312+
313313
/**
314314
* Get query for siblings after the node.
315315
*

0 commit comments

Comments
 (0)