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 495f1be commit 7f6904a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/Tree/RepositoryInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ interface RepositoryInterface extends RepositoryUtilsInterface
* @param string $sortByField
* @param string $direction
*
* @return array<int, object>
* @return array<int|string, object>
*/
public function getRootNodes($sortByField = null, $direction = 'asc');

Expand All @@ -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<int, object>
* @return array<int|string, 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<int, object> List of children
* @return array<int|string, object> List of children
*
* @phpstan-param 'asc'|'desc'|'ASC'|'DESC'|array<int, 'asc'|'desc'|'ASC'|'DESC'> $direction
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Tree/Strategy/AbstractMaterializedPath.php
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ abstract public function removeNode($om, $meta, $config, $node);
* @param array<string, mixed> $config config
* @param string $originalPath original path of object
*
* @return array|\Traversable
* @return array<int, object>|\Traversable<int, object>
*/
abstract public function getChildren($om, $meta, $config, $originalPath);

Expand Down

0 comments on commit 7f6904a

Please sign in to comment.