Skip to content

Commit b4ac3a8

Browse files
committed
Try fix PHP 7.4 CI issues
1 parent 17aeaa0 commit b4ac3a8

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

Diff for: tests/PHPStan/Reflection/Deprecation/data/CustomDeprecationProvider.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
<?php declare(strict_types = 1);
1+
<?php // lint >= 8.0
2+
3+
declare(strict_types = 1);
24

35
namespace PHPStan\Tests;
46

Diff for: tests/PHPStan/Reflection/Deprecation/data/deprecations.php

+4-1
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,12 @@
55
#[\Attribute(\Attribute::TARGET_ALL)]
66
class CustomDeprecated {
77

8+
public ?string $description;
9+
810
public function __construct(
9-
public ?string $description = null,
11+
?string $description = null,
1012
) {
13+
$this->description = $description;
1114
}
1215
}
1316

0 commit comments

Comments
 (0)