diff --git a/src/Knp/Menu/Matcher/Matcher.php b/src/Knp/Menu/Matcher/Matcher.php index 5cd69720..623d7c22 100644 --- a/src/Knp/Menu/Matcher/Matcher.php +++ b/src/Knp/Menu/Matcher/Matcher.php @@ -16,14 +16,14 @@ class Matcher implements MatcherInterface private \WeakMap $cache; /** - * @var iterable|VoterInterface[] + * @var iterable */ private iterable $voters; /** - * @param VoterInterface[]|iterable $voters + * @param iterable $voters */ - public function __construct($voters = []) + public function __construct(iterable $voters = []) { $this->voters = $voters; $this->cache = new \WeakMap(); diff --git a/src/Knp/Menu/Provider/ChainProvider.php b/src/Knp/Menu/Provider/ChainProvider.php index 11cf6975..7c8563de 100644 --- a/src/Knp/Menu/Provider/ChainProvider.php +++ b/src/Knp/Menu/Provider/ChainProvider.php @@ -7,14 +7,14 @@ class ChainProvider implements MenuProviderInterface { /** - * @var iterable|MenuProviderInterface[] + * @var iterable */ private iterable $providers; /** - * @param MenuProviderInterface[]|iterable $providers + * @param iterable $providers */ - public function __construct($providers) + public function __construct(iterable $providers) { $this->providers = $providers; } diff --git a/src/Knp/Menu/Provider/LazyProvider.php b/src/Knp/Menu/Provider/LazyProvider.php index c42e3370..91cf8077 100644 --- a/src/Knp/Menu/Provider/LazyProvider.php +++ b/src/Knp/Menu/Provider/LazyProvider.php @@ -14,7 +14,7 @@ class LazyProvider implements MenuProviderInterface { /** - * @phpstan-param array $builders + * @phpstan-param array $builders */ public function __construct(private array $builders) { diff --git a/src/Knp/Menu/Provider/MenuProviderInterface.php b/src/Knp/Menu/Provider/MenuProviderInterface.php index f6ceb216..90d64f2e 100644 --- a/src/Knp/Menu/Provider/MenuProviderInterface.php +++ b/src/Knp/Menu/Provider/MenuProviderInterface.php @@ -11,7 +11,7 @@ interface MenuProviderInterface * * @param array $options * - * @throws \InvalidArgumentException if the menu does not exists + * @throws \InvalidArgumentException if the menu does not exist */ public function get(string $name, array $options = []): ItemInterface; diff --git a/src/Knp/Menu/Renderer/Renderer.php b/src/Knp/Menu/Renderer/Renderer.php index 52b6b74b..b8ae133c 100644 --- a/src/Knp/Menu/Renderer/Renderer.php +++ b/src/Knp/Menu/Renderer/Renderer.php @@ -14,7 +14,7 @@ public function __construct(?string $charset = null) } /** - * Renders a HTML attribute + * Renders an HTML attribute * * @param string|bool $value */