Skip to content

Commit

Permalink
update docblocks
Browse files Browse the repository at this point in the history
  • Loading branch information
mimmi20 committed Dec 18, 2023
1 parent 776a3f1 commit 4ca3a8e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -95,5 +95,5 @@ parameters:
tooWideThrowType: true

ignoreErrors:
- '~Parameter #1 \$options of method Mimmi20\\Mezzio\\Navigation\\Page\\PageFactoryInterface::factory\(\) expects array<string, array<string>\|bool\|string>, array<int\|string, array<string>\|string> given~'
- '~Parameter #1 \$options of method Mimmi20\\Mezzio\\Navigation\\Page\\PageFactoryInterface::factory\(\) expects array<string, array<string>\|bool\|string>, array<iterable<string>\|string> given~'
- '~is always true~'
4 changes: 2 additions & 2 deletions src/ConvertToPages.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ public function __construct(
/**
* Converts a $mixed value to an array of pages
*
* @param AbstractContainer<AbstractPage>|AbstractPage|ContainerInterface|int|iterable<int|string, array<string>|string>|PageInterface|string $mixed mixed value to get page(s) from
* @param bool $recursive whether $value should be looped if it is an array or a config
* @param AbstractContainer<AbstractPage>|AbstractPage|ContainerInterface|int|iterable<iterable<string>|string>|PageInterface|string $mixed mixed value to get page(s) from
* @param bool $recursive whether $value should be looped if it is an array or a config
*
* @return array<int|string, AbstractPage|PageInterface>
*
Expand Down
4 changes: 2 additions & 2 deletions src/ConvertToPagesInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ interface ConvertToPagesInterface
/**
* Converts a $mixed value to an array of pages
*
* @param AbstractContainer<AbstractPage>|AbstractPage|ContainerInterface|int|iterable<int|string, array<string>|string>|PageInterface|string $mixed mixed value to get page(s) from
* @param bool $recursive whether $value should be looped if it is an array or a config
* @param AbstractContainer<AbstractPage>|AbstractPage|ContainerInterface|int|iterable<iterable<string>|string>|PageInterface|string $mixed mixed value to get page(s) from
* @param bool $recursive whether $value should be looped if it is an array or a config
*
* @return array<int|string, AbstractPage|PageInterface>
*
Expand Down

0 comments on commit 4ca3a8e

Please sign in to comment.