Skip to content

Commit

Permalink
More fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
phansys committed Sep 3, 2023
1 parent c764934 commit 495f1be
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/Tree/Entity/Repository/MaterializedPathRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ public function getPathQuery($node)
*
* @param object $node
*
* @return array list of Nodes in path
* @return array<int, object> list of Nodes in path
*/
public function getPath($node)
{
Expand Down
10 changes: 5 additions & 5 deletions src/Tree/Entity/Repository/NestedTreeRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ public function childrenQuery($node = null, $direct = false, $sortByField = null
* @param string|string[] $direction Sort order ('asc'|'desc'|'ASC'|'DESC'). If $sortByField is an array, this may also be an array with matching number of elements
* @param bool $includeNode Flag indicating whether the given node should be included in the results
*
* @return array<int, object> List of children or null on failure
* @return array<int, object> List of children
*
* @phpstan-param 'asc'|'desc'|'ASC'|'DESC'|array<int, 'asc'|'desc'|'ASC'|'DESC'> $direction
*/
Expand All @@ -425,7 +425,7 @@ public function getChildrenQuery($node = null, $direct = false, $sortByField = n
}

/**
* @return array<int, object|null>
* @return array<int, object>
*/
public function getChildren($node = null, $direct = false, $sortByField = null, $direction = 'ASC', $includeNode = false)
{
Expand Down Expand Up @@ -511,7 +511,7 @@ public function getLeafsQuery($root = null, $sortByField = null, $direction = 'A
* @param string $sortByField field name to sort by
* @param string $direction sort direction : "ASC" or "DESC"
*
* @return array
* @return array<int, object>
*
* @phpstan-param 'asc'|'desc'|'ASC'|'DESC' $direction
*/
Expand Down Expand Up @@ -593,7 +593,7 @@ public function getNextSiblingsQuery($node, $includeSelf = false)
* @param object $node
* @param bool $includeSelf include the node itself
*
* @return array
* @return array<int, object>
*/
public function getNextSiblings($node, $includeSelf = false)
{
Expand Down Expand Up @@ -672,7 +672,7 @@ public function getPrevSiblingsQuery($node, $includeSelf = false)
* @param object $node
* @param bool $includeSelf include the node itself
*
* @return array
* @return array<int, object>
*/
public function getPrevSiblings($node, $includeSelf = false)
{
Expand Down
4 changes: 2 additions & 2 deletions src/Tree/RepositoryInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function getRootNodes($sortByField = null, $direction = 'asc');
* @param array $options Options, see {@see RepositoryUtilsInterface::buildTree()} for supported keys
* @param bool $includeNode Flag indicating whether the given node should be included in the results
*
* @return array
* @return array<int, object>
*/
public function getNodesHierarchy($node = null, $direct = false, array $options = [], $includeNode = false);

Expand All @@ -50,7 +50,7 @@ public function getNodesHierarchy($node = null, $direct = false, array $options
* @param string|string[] $direction Sort order ('asc'|'desc'|'ASC'|'DESC'). If $sortByField is an array, this may also be an array with matching number of elements
* @param bool $includeNode Include the root node in results?
*
* @return array|null List of children or null on failure
* @return array<int, object> List of children
*
* @phpstan-param 'asc'|'desc'|'ASC'|'DESC'|array<int, 'asc'|'desc'|'ASC'|'DESC'> $direction
*/
Expand Down

0 comments on commit 495f1be

Please sign in to comment.