Skip to content

Commit ce4c30e

Browse files
authored
Add missing const visibility modifier in enum example
As per 4.3: > Visibility MUST be declared on all constants if your project > PHP minimum version supports constant visibilities > (PHP 7.1 or later).
1 parent 396af44 commit ce4c30e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1281,7 +1281,7 @@ enum Suit: string
12811281
case Spades = 'S';
12821282
case Clubs = 'C';
12831283

1284-
const Wild = self::Spades;
1284+
public const Wild = self::Spades;
12851285
}
12861286
```
12871287

0 commit comments

Comments
 (0)