diff --git a/migration-3.0.md b/migration-3.0.md index 409a868..7a3dc7b 100644 --- a/migration-3.0.md +++ b/migration-3.0.md @@ -75,7 +75,9 @@ class Foo ## [Section 4.6 - Modifier Keywords](https://www.php-fig.org/per/coding-style/#46-modifier-keywords) -At least one of `readonly`, `get`-visibility, and `set`-visibility must be specified. If at least one is specified, the others may be omitted. +The set-visibility modifier (`public(set)`, `protected(set)`, `private(set)`) was added to the modifier ordering, between the general visibility and the `static` modifier. + +All modifier keywords MUST be all lower-case. The `public` keyword MAY be omitted when using a set-visibility on a public-read property. ```php class Foo @@ -83,9 +85,9 @@ class Foo // These are all acceptable. public private(set) string $one; private(set) string $two; - readonly string $three; // These are not. + PUBLIC PROTECTED(set) string $three; private(set) public string $four; } ```