1 | <?php |
||
2 | declare(strict_types=1); |
||
3 | namespace Thunder\Platenum\Tests\Psalm; |
||
4 | |||
5 | use Thunder\Platenum\Enum\AbstractConstantsEnum; |
||
6 | |||
7 | /** |
||
8 | * @method static static SPRING() |
||
9 | * @method static static SUMMER() |
||
10 | * @method static static AUTUMN() |
||
11 | * @method static static WINTER() |
||
12 | * |
||
13 | * @extends AbstractConstantsEnum<'SPRING'|'SUMMER'|'AUTUMN'|'WINTER',SeasonsExtend::*> |
||
14 | * @psalm-suppress PropertyNotSetInConstructor |
||
15 | */ |
||
16 | final class SeasonsExtend extends AbstractConstantsEnum |
||
17 | { |
||
18 | private const SPRING = 1; |
||
19 | private const SUMMER = 2; |
||
20 | private const AUTUMN = 3; |
||
21 | private const WINTER = 4; |
||
22 | } |
||
23 | |||
24 | $spring = SeasonsExtend::SPRING(); |
||
25 | /** @psalm-suppress InvalidArgument */ |
||
26 | $spring->hasMember('INVALID'); |
||
27 | /** @psalm-suppress InvalidArgument */ |
||
28 | $spring->hasValue(9); |
||
0 ignored issues
–
show
Bug
introduced
by
![]() |
|||
29 |