On 26/01/2022 14:48, Christian Schneider wrote:
Please don't flame me, I just wanted to point out that there is an opposing
view on internals to consider ;-)
It is my firm believe that a language such as PHP should not be
dependent on static analysers to protect users against engine-level
problems that may occur during runtime.
Third party static analysers are great, and I am a strong proponent of
Psalm.
However, internals is not responsible for getting people to use a static
analyser, we are responsible for the behaviour of the engine, and right
now the engine is, I think, too lax in this regard.
We should be aiming to provide a reasonably safe experience out the box.
That you're manually patching PHP to change official behaviour (which
was passed by RFC) puts your individual use case well outside of what
should be considered when voting.
Mark Randall
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: https://www.php.net/unsub.php