Skip to content

Conversation

iluuu1994
Copy link
Member

https://wiki.php.net/rfc/asymmetric-visibility-v2#static_properties

Static properties

This functionality applies only to object properties. It does not apply to static properties. For various implementation reasons that is far harder, and also far less useful. It has therefore been omitted from this RFC.

This check was forgotten in the original implementation. Relaxing this restriction shouldn't be hard, but needs some work. We either need to prevent merging of cache slots for R/RW/W, or we need to introduce an additional check when writing to the property indirectly.

@iluuu1994 iluuu1994 force-pushed the disallow-static-avis branch 2 times, most recently from 8c96c67 to 77b22ec Compare October 16, 2024 17:58
This check was forgotten in the original implementation. Relaxing this
restriction shouldn't be hard, but needs some work. We either need to prevent
merging of cache slots for R/RW/W, or we need to introduce an additional check
when writing to the property indirectly. This check is currently present only
for direct writes.
@iluuu1994 iluuu1994 force-pushed the disallow-static-avis branch from 77b22ec to 65ba36a Compare October 16, 2024 18:00
@iluuu1994 iluuu1994 closed this in a8bbc84 Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants