Skip to content

Commit 577a4aa

Browse files
committed
add missing string type for $title in Asymmetric Property inheritance example
php/doc-en@5c04cf0
1 parent 2368f3a commit 577a4aa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

language/oop5/visibility.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- $Revision$ -->
3-
<!-- EN-Revision: c1f37a6c270aadbbb3da56a3973ffd62197adf2b Maintainer: hirokawa Status: ready -->
3+
<!-- EN-Revision: 5c04cf0fd637b258d2a3bf7f4b7aba1beef6d823 Maintainer: hirokawa Status: ready -->
44
<!-- CREDITS: takagi,mumumu -->
55

66
<sect1 xml:id="language.oop5.visibility" xmlns="http://docbook.org/ns/docbook">
@@ -200,7 +200,7 @@ class Book
200200
201201
class SpecialBook extends Book
202202
{
203-
public protected(set) $title; // OK。読み取りのアクセス権が広く、書き込みは同じだから。
203+
public protected(set) string $title; // OK。読み取りのアクセス権が広く、書き込みは同じだから。
204204
public string $author; // OK。読み取りのアクセス権は同じで、書き込みが広いから。
205205
public protected(set) int $pubYear; // 致命的なエラー。private(set) プロパティは final です。
206206
}

0 commit comments

Comments
 (0)