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
2 changes: 1 addition & 1 deletion language/oop5/visibility.xml
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ class Book

class SpecialBook extends Book
{
public protected(set) $title; // OK, as reading is wider and writing the same.
public protected(set) string $title; // OK, as reading is wider and writing the same.
public string $author; // OK, as reading is the same and writing is wider.
public protected(set) int $pubYear; // Fatal Error. private(set) properties are final.
}
Expand Down