Skip to content

Commit c338dc5

Browse files
authored
[PHPDoc] Prefixed template mentioning annotation with phpstan- (#434)
1 parent f6dde52 commit c338dc5

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/contracts/Pool/Pool.php

+5-5
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,15 @@ final class Pool implements PoolInterface
2020

2121
private string $class;
2222

23-
/** @var iterable<string,T> */
23+
/** @phpstan-var iterable<string,T> */
2424
private iterable $entries;
2525

2626
private string $exceptionArgumentName = '$alias';
2727

2828
private string $exceptionMessageTemplate = self::DEFAULT_EXCEPTION_MESSAGE_TEMPLATE;
2929

3030
/**
31-
* @param iterable<string,T> $entries
31+
* @phpstan-param iterable<string,T> $entries
3232
*/
3333
public function __construct(string $class, iterable $entries = [])
3434
{
@@ -44,7 +44,7 @@ public function has(string $alias): bool
4444
/**
4545
* @throws \Ibexa\Contracts\Core\Repository\Exceptions\InvalidArgumentException
4646
*
47-
* @return T
47+
* @phpstan-return T
4848
*/
4949
public function get(string $alias)
5050
{
@@ -64,7 +64,7 @@ public function get(string $alias)
6464
}
6565

6666
/**
67-
* @return T|null
67+
* @phpstan-return T|null
6868
*/
6969
private function findEntry(string $needle)
7070
{
@@ -78,7 +78,7 @@ private function findEntry(string $needle)
7878
}
7979

8080
/**
81-
* @return iterable<string,T>
81+
* @phpstan-return iterable<string,T>
8282
*/
8383
public function getEntries(): iterable
8484
{

src/contracts/Pool/PoolInterface.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ public function has(string $alias): bool;
1818
/**
1919
* @throws \Ibexa\Contracts\Core\Repository\Exceptions\InvalidArgumentException
2020
*
21-
* @return T
21+
* @phpstan-return T
2222
*/
2323
public function get(string $alias);
2424

2525
/**
26-
* @return iterable<string,T>
26+
* @phpstan-return iterable<string,T>
2727
*/
2828
public function getEntries(): iterable;
2929

0 commit comments

Comments
 (0)