History log of /php-src/ext/reflection/tests/ReflectionProperty_isDynamic_basic.phpt (Results 1 – 1 of 1)
Revision Date Author Comments
# 2ced1c92 11-Sep-2024 DanielEScherzer

Add `ReflectionProperty::isDynamic()` as an alternative to `isDefault()` (#15758)

Dynamic properties are generally referred to as "dynamic" properties, while
non-dynamic properties are n

Add `ReflectionProperty::isDynamic()` as an alternative to `isDefault()` (#15758)

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

show more ...