3 ms·
PHP really took a great turn with PHP 8. It introduced such drastic breaking changes, that probably a lot of systems which were previously serving unsafe and e
by dreadnip 3y ago
PHP really took a great turn with PHP 8.
It introduced such drastic breaking changes, that probably a lot of systems which were previously serving unsafe and error-prone code to their users will be abandoned. Projects that should have been updated ages ago and served their users dangerous code.
It fixed the order of parameters in join statements.
It fixed calling static functions without declaring them as static.
It fixed adding properties dynamicly to objects.
It fixed string handling for many functions where Null was rendered as an empty string.
And these changes make PHP code more secure. There is now no way around adding more declarations to your codebase than before.
Most of these breakages had 70% votes in favour:
https://wiki.php.net/rfc/deprecate_dynamic_properties https://wiki.php.net/rfc/deprecate_dynamic_properties