[php-src] PR #15758: Add `ReflectionProperty::isDynamic()` as an alternative to `isDefault()`
| From: | DanielEScherzer | Date: | Thu, 05 Sep 2024 00:44:29 +0000 |
| Subject: | [php-src] PR #15758: Add `ReflectionProperty::isDynamic()` as an alternative to `isDefault()` | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-28419@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/15758
Author: DanielEScherzer
Dynamic properties are generally referred to as "dynamic" properties, while non-dynamic
properties are not commonly referred to as "default" properties. Thus, the existing method
ReflectionProperty::isDefault() has a non obvious name; while an alias could be added
for isNotDynamic(), a new isDynamic() method seems cleaner. The new method
returns the opposite of isDefault(); dynamic properties are not present on the class by
default, and properties present by default are not added dynamically.
Closes GH-15754