[doc-en] master: property-hooks: add missing `$modified` declaration to example 4 (#5124)

From: Date: Tue, 17 Feb 2026 18:25:19 +0000
Subject: [doc-en] master: property-hooks: add missing `$modified` declaration to example 4 (#5124)
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-23144@lists.php.net to get a copy of this message
Author: Daniel Scherzer (DanielEScherzer) Committer: GitHub (web-flow) Pusher: DanielEScherzer Date: 2026-02-17T10:25:16-08:00 Commit: https://github.com/php/doc-en/commit/88eb0d53c6520804fb1dc17f35fa481451657fb7 Raw diff: https://github.com/php/doc-en/commit/88eb0d53c6520804fb1dc17f35fa481451657fb7.diff property-hooks: add missing $modified declaration to example 4 (#5124) Changed paths: M language/oop5/property-hooks.xml Diff: diff --git a/language/oop5/property-hooks.xml b/language/oop5/property-hooks.xml index 94d460f43b97..e41a217c5387 100644 --- a/language/oop5/property-hooks.xml +++ b/language/oop5/property-hooks.xml @@ -183,6 +183,8 @@ class Example <?php class Example { + private bool $modified = false; + public string $foo = 'default value' { get => $this->foo . ($this->modified ? ' (modified)' : ''); set => strtolower($value);

« previous php.doc.cvs (#23144) next »