Pre-RFC: allow #[Override] on properties

From: Date: Wed, 02 Jul 2025 07:50:18 +0000
Subject: Pre-RFC: allow #[Override] on properties
Groups: php.internals 
Request: Send a blank email to internals+get-127831@lists.php.net to get a copy of this message
Hi internals, I would like to propose extending the target of the #[Override] attribute to include properties. The original RFC explicitly excluded properties [1] for reasons that have since then changed drastically: the additions in 8.4 have allowed properties to become a more prominent part of the public API of a class or an interface. In light of these changes, I believe it might be worth revisiting. The RFC passed almost unanimously, but based on the discussion, I got the impression it raised some concerns about its utility. So I wanted to reach out and read the room before proceeding with an actual RFC. Looking forward to your thoughts. Best regards, Jiří Pudil [1] https://wiki.php.net/rfc/marking_overriden_methods#properties

« previous php.internals (#127831) next »