Symfony achieves 100% PHP7 compatibility
PHP7, the new version of the programming language Symfony is built with, will be released at the end of the year. The recent release of its third beta has brought us another step closer to the final stable release.
During these last past months, we've been working very hard to achieve full PHP7 compatibility. This effort accelerated during the past weeks and we're glad to announce that all Symfony maintained branches are now 100% compatible with PHP7.
Our PHP7 compatibility journey started on February 2015, when Nicolas Grekas
php: nightly to the list of tested PHP engines on Travis CI
After that, a lot of pull requests
followed to fix PHP7 compatibility for Symfony components.
Some of these changes were related to the new reserved keywords, which prevents
you from using
null as the name of your classes (see PR #14472).
This forced us to rename the
(see PR #14228).
Another big change was related to the new
Throwable interface introduced by
PHP7 and which is implemented by all the internal error and exception classes.
Our exception handler needed to be updated for this new interface
(see PR #14959).
Lastly, we've just removed
php: nightly from the list of PHP engines which
can silently fail. This means that Symfony no longer accepts changes that break
PHP7 compatibility, not even in the master branch where the upcoming Symfony 3
is being developed.
Comments are closed.
To ensure that comments stay relevant, they are closed for old posts.