Skip to content

Commit 6cba377

Browse files
committed
ignore enum issue on old php
1 parent 14a6864 commit 6cba377

File tree

2 files changed

+4
-12
lines changed

2 files changed

+4
-12
lines changed

build/enums.neon

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,7 @@ parameters:
1313
paths:
1414
- ../tests/PHPStan/Type/ObjectTypeTest.php
1515
- ../tests/PHPStan/Type/IntersectionTypeTest.php
16+
-
17+
message: '#^Class CustomDeprecations\\MyDeprecatedEnum not found\.$#'
18+
paths:
19+
- ../tests/PHPStan/Reflection/Deprecation/DeprecationProviderTest.php

tests/PHPStan/Reflection/Deprecation/data/deprecations-enums.php

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,6 @@
22

33
namespace CustomDeprecations;
44

5-
#[\Attribute(\Attribute::TARGET_ALL)]
6-
class CustomDeprecated {
7-
8-
public ?string $description;
9-
10-
public function __construct(
11-
?string $description = null
12-
) {
13-
$this->description = $description;
14-
}
15-
}
16-
175
#[CustomDeprecated]
186
enum MyDeprecatedEnum: string
197
{

0 commit comments

Comments
 (0)