Two things that surprised me today, with static.
First, it looks like a 'static' typed property, until I read the default value. It took me a while to figure out.
Secondly, static properties may be inherited, or be distinct from the parent: redefine it in the child, and that segregate them. 😮
[#]phptip #phptrick
https://php-tips.readthedocs.io/en/latest/tips/static_properties.html
=> More informations about this toot | View the thread | More toots from dseguy@phpc.social
=> View phptip tag | View phptrick tag This content has been proxied by September (ba2dc).Proxy Information
text/gemini