diff --git a/language/oop5/properties.xml b/language/oop5/properties.xml index 4734c517f9..1077844476 100644 --- a/language/oop5/properties.xml +++ b/language/oop5/properties.xml @@ -66,12 +66,15 @@ - Unlike - heredocs, + As of PHP 5.3.0 + heredocs and nowdocs can be used in any static data context, including property declarations. @@ -113,6 +116,9 @@ class foo { // As of PHP 5.3.0 public $bar = <<<'EOT' bar +EOT; + public $baz = << @@ -122,7 +128,7 @@ EOT; - Nowdoc support was added in PHP 5.3.0. + Nowdoc and Heredoc support was added in PHP 5.3.0.