rfc:deprecate_dynamic_properties
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
rfc:deprecate_dynamic_properties [2021/10/12 10:07] – Use attribute instead nikic | rfc:deprecate_dynamic_properties [2021/10/12 10:16] – nikic | ||
---|---|---|---|
Line 4: | Line 4: | ||
* Status: Under Discussion | * Status: Under Discussion | ||
* Target Version: PHP 8.2 | * Target Version: PHP 8.2 | ||
- | * Implementation: | + | * Implementation: |
===== Introduction ===== | ===== Introduction ===== | ||
Line 98: | Line 98: | ||
</ | </ | ||
- | For classes that intentionally don't have a fixed set of properties, it's possible to either implement magic '' | + | For classes that intentionally don't have a fixed set of properties, it's possible to either implement magic '' |
In some cases it is desirable to associate information with objects that you do not own. Previously, it was possible to add a dynamic property for this purpose. Instead, a '' | In some cases it is desirable to associate information with objects that you do not own. Previously, it was possible to add a dynamic property for this purpose. Instead, a '' |
rfc/deprecate_dynamic_properties.txt · Last modified: 2021/11/26 13:59 by nikic