Skip to content

Commit 5de4ba2

Browse files
minor #360 [PHP 8.1] [PHP 7.3] Preventing redeclaration of PHP version related class stubs. (Firtzberg)
This PR was merged into the 1.23-dev branch. Discussion ---------- [PHP 8.1] [PHP 7.3] Preventing redeclaration of PHP version related class stubs. Same as symfony/polyfill#359, only for other PHP version related class stubs. Commits ------- 4cddf20 Preventing redeclaration of PHP version related class stubs.
2 parents 7af7bca + 998b7ea commit 5de4ba2

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed
Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
<?php
22

3-
#[Attribute(Attribute::TARGET_METHOD)]
4-
final class ReturnTypeWillChange
5-
{
6-
public function __construct()
3+
if (\PHP_VERSION_ID < 80100) {
4+
#[Attribute(Attribute::TARGET_METHOD)]
5+
final class ReturnTypeWillChange
76
{
7+
public function __construct()
8+
{
9+
}
810
}
911
}

0 commit comments

Comments
 (0)