@@ -188,7 +188,7 @@ public function ancestorsAndSelf($id, array $columns = [ '*' ])
188188 *
189189 * @return $this
190190 */
191- public function whereNodeBetween ($ values , $ boolean = 'and ' , $ not = false , ? Query $ query = null )
191+ public function whereNodeBetween ($ values , $ boolean = 'and ' , $ not = false , $ query = null )
192192 {
193193 ($ query ?? $ this ->query )->whereBetween ($ this ->model ->getTable () . '. ' . $ this ->model ->getLftName (), $ values , $ boolean , $ not );
194194
@@ -861,7 +861,7 @@ public function isBroken()
861861 *
862862 * @return int The number of changed nodes
863863 */
864- public function fixTree (? Model $ root = null )
864+ public function fixTree ($ root = null )
865865 {
866866 $ columns = [
867867 $ this ->model ->getKeyName (),
@@ -899,7 +899,7 @@ public function fixSubtree($root)
899899 *
900900 * @return int
901901 */
902- protected function fixNodes (array &$ dictionary , ? Model $ parent = null )
902+ protected function fixNodes (array &$ dictionary , $ parent = null )
903903 {
904904 $ parentId = $ parent ? $ parent ->getKey () : null ;
905905 $ cut = $ parent ? $ parent ->getLft () + 1 : 1 ;
@@ -941,7 +941,7 @@ protected function fixNodes(array &$dictionary, ?Model $parent = null)
941941 * @internal param int $fixed
942942 */
943943 protected static function reorderNodes (
944- array &$ dictionary , array &$ updated , null | int | string $ parentId = null , $ cut = 1
944+ array &$ dictionary , array &$ updated , $ parentId = null , $ cut = 1
945945 ) {
946946 if ( ! isset ($ dictionary [$ parentId ])) {
947947 return $ cut ;
@@ -973,11 +973,11 @@ protected static function reorderNodes(
973973 * @param array $data
974974 * @param bool $delete Whether to delete nodes that exists but not in the data
975975 * array
976- * @param ?Model|NodeTrait $root
976+ * @param null $root
977977 *
978978 * @return int
979979 */
980- public function rebuildTree (array $ data , $ delete = false , ? Model $ root = null )
980+ public function rebuildTree (array $ data , $ delete = false , $ root = null )
981981 {
982982 if ($ this ->model ->usesSoftDelete ()) {
983983 $ this ->withTrashed ();
@@ -1084,7 +1084,7 @@ protected function buildRebuildDictionary(array &$dictionary,
10841084 *
10851085 * @return $this
10861086 */
1087- public function applyNestedSetScope (? string $ table = null )
1087+ public function applyNestedSetScope ($ table = null )
10881088 {
10891089 return $ this ->model ->applyNestedSetScope ($ this , $ table );
10901090 }
0 commit comments