5
5
use Carbon \Carbon ;
6
6
use Illuminate \Database \Eloquent \Builder as EloquentBuilder ;
7
7
use Illuminate \Database \Eloquent \Collection as EloquentCollection ;
8
- use Illuminate \Database \Eloquent \Model ;
9
8
use Illuminate \Database \Eloquent \Relations \BelongsTo ;
10
9
use Illuminate \Database \Eloquent \Relations \HasMany ;
11
10
use Illuminate \Database \Eloquent \Relations \Relation ;
@@ -181,7 +180,7 @@ protected function actionAppendOrPrepend(Node $parent, $prepend = false)
181
180
/**
182
181
* Apply parent model.
183
182
*
184
- * @param ( Node&Tmodel) |null $value
183
+ * @param Node|null $value
185
184
*
186
185
* @return $this
187
186
*/
@@ -373,7 +372,7 @@ public function saveAsRoot(): bool
373
372
/**
374
373
* Append and save a node.
375
374
*
376
- * @param Node&Tmodel $node
375
+ * @param Node $node
377
376
*
378
377
* @return bool
379
378
*/
@@ -398,7 +397,7 @@ public function prependNode(Node $node): bool
398
397
/**
399
398
* Append a node to the new parent.
400
399
*
401
- * @param Node&Tmodel $parent
400
+ * @param Node $parent
402
401
*
403
402
* @return self
404
403
*/
@@ -425,7 +424,7 @@ public function prependToNode(Node $parent): Node
425
424
*
426
425
* @return self
427
426
*/
428
- public function appendOrPrependTo (Node $ parent , bool $ prepend = false ): self
427
+ protected function appendOrPrependTo (Node $ parent , bool $ prepend = false ): self
429
428
{
430
429
$ this ->assertNodeExists ($ parent )
431
430
->assertNotDescendant ($ parent )
@@ -461,7 +460,7 @@ public function beforeNode(Node $node)
461
460
}
462
461
463
462
/**
464
- * @param Node&Tmodel $node
463
+ * @param Node $node
465
464
* @param bool $after
466
465
*
467
466
* @return Node
0 commit comments