Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion spec.md
Original file line number Diff line number Diff line change
Expand Up @@ -659,12 +659,13 @@ engine and language handles them. When present, they MUST be in the following or

* Inheritance modifier: `abstract` or `final`
* Visibility modifier: `public`, `protected`, or `private`
* Set-visibility modifier: `public(set)`, `protected(set)`, or `private(set)`
* Scope modifier: `static`
* Mutation modifier: `readonly`
* Type declaration
* Name

All keywords MUST be on a single line, and MUST be separated by a single space.
All keywords MUST be on a single line, and MUST be separated by a single space. All keywords MUST be all lower-case. The `public` keyword MAY be omitted when using a set-visibility on a public-read property.

The following is a correct example of modifier keyword usage:

Expand All @@ -679,6 +680,10 @@ abstract class ClassName

private readonly int $beep;

protected private(set) string $name;

protected(set) string $boop;

abstract protected function zim();

final public static function bar()
Expand Down