diff --git a/language/oop5/visibility.xml b/language/oop5/visibility.xml index 8898d01becfd..465f7f87fe5c 100644 --- a/language/oop5/visibility.xml +++ b/language/oop5/visibility.xml @@ -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. }