Skip to content

Commit 7d792ca

Browse files
Asymmetric visibility not yet in member properties
1 parent dc928ee commit 7d792ca

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
@@ -103,7 +103,7 @@ class AsymmetricVisibility {
103103

104104
protected(set) array $unfixed;
105105

106-
public protected(set) int $wrongOrder1;
106+
protected(set) public int $wrongOrder1;
107107

108-
protected private(set) ?string $wrongOrder2;
108+
private(set) protected ?string $wrongOrder2;
109109
}

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
95 => 1,
6262
96 => 1,

0 commit comments

Comments
 (0)