- Notifications
You must be signed in to change notification settings - Fork8k
Closed
Description
Description
If I look at what__METHOD__
does, it has meaning in:
- method attributes
- default parameter values
- parameter attributes
- in method body
Here's a quick proof:https://3v4l.org/EqGLn
When I compare that with__PROPERTY__
, it only has meaning in:
- parameter attributes
- in hook body
Of course, hook parameter cannot have a default value. But it'd be nice for consistency if it also had meaning in:
- hook attributes
Which it currently has not. Additionally, it might be up to discussion, if it should have meaning in:
- default property value
- property attributes
Here's a quick script to verify:https://3v4l.org/4BMJt#v8.4.2
PHP Version
PHP 8.4
Operating System
N/A