From 6b96747ca4188a136cc1c666c497a4ed105f42a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Noco=C5=84?= Date: Wed, 9 Oct 2024 12:12:04 +0200 Subject: [PATCH] [PHPDoc] Prefixed template mentioning annotation with phpstan- --- src/contracts/Pool/Pool.php | 10 +++++----- src/contracts/Pool/PoolInterface.php | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/contracts/Pool/Pool.php b/src/contracts/Pool/Pool.php index 5fb72616f1..081939a7d7 100644 --- a/src/contracts/Pool/Pool.php +++ b/src/contracts/Pool/Pool.php @@ -20,7 +20,7 @@ final class Pool implements PoolInterface private string $class; - /** @var iterable */ + /** @phpstan-var iterable */ private iterable $entries; private string $exceptionArgumentName = '$alias'; @@ -28,7 +28,7 @@ final class Pool implements PoolInterface private string $exceptionMessageTemplate = self::DEFAULT_EXCEPTION_MESSAGE_TEMPLATE; /** - * @param iterable $entries + * @phpstan-param iterable $entries */ public function __construct(string $class, iterable $entries = []) { @@ -44,7 +44,7 @@ public function has(string $alias): bool /** * @throws \Ibexa\Contracts\Core\Repository\Exceptions\InvalidArgumentException * - * @return T + * @phpstan-return T */ public function get(string $alias) { @@ -64,7 +64,7 @@ public function get(string $alias) } /** - * @return T|null + * @phpstan-return T|null */ private function findEntry(string $needle) { @@ -78,7 +78,7 @@ private function findEntry(string $needle) } /** - * @return iterable + * @phpstan-return iterable */ public function getEntries(): iterable { diff --git a/src/contracts/Pool/PoolInterface.php b/src/contracts/Pool/PoolInterface.php index a6c5c1a125..f6ed77c2ae 100644 --- a/src/contracts/Pool/PoolInterface.php +++ b/src/contracts/Pool/PoolInterface.php @@ -18,12 +18,12 @@ public function has(string $alias): bool; /** * @throws \Ibexa\Contracts\Core\Repository\Exceptions\InvalidArgumentException * - * @return T + * @phpstan-return T */ public function get(string $alias); /** - * @return iterable + * @phpstan-return iterable */ public function getEntries(): iterable;