Skip to content

Commit a761347

Browse files
Asymmetric visibility not yet in member properties
1 parent dc90f75 commit a761347

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Standards/PSR2/Tests/Classes/PropertyDeclarationUnitTest.inc.fixed

+2-2
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ class AsymmetricVisibility {
9292

9393
protected(set) array $unfixed;
9494

95-
public protected(set) int $wrongOrder1;
95+
protected(set) public int $wrongOrder1;
9696

97-
protected private(set) ?string $wrongOrder2;
97+
private(set) protected ?string $wrongOrder2;
9898
}

src/Standards/PSR2/Tests/Classes/PropertyDeclarationUnitTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public function getErrorList()
5656
82 => 1,
5757
84 => 1,
5858
86 => 1,
59-
90 => 1,
59+
90 => 2,
6060
94 => 1,
6161
96 => 1,
6262
98 => 1,

0 commit comments

Comments
 (0)