Symfony achieves 100% PHP7 compatibility

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 added to the list of tested PHP engines on Travis CI (see commit). After that, a lot of pull requestsfollowed to fix PHP7 compatibility for Symfony components.

Some of these changes were related to the new reserved keywords, which prevents you from using, , , , , and as the name of your classes (see PR #14472). This forced us to rename the , and constraints (see PR #14228).

Another big change was related to the new 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 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.

要查看或添加评论,请登录

Mohamed Habib ALOUI的更多文章

  • Handling Date and Time in Next.js: Best Practices and Common Pitfalls

    Handling Date and Time in Next.js: Best Practices and Common Pitfalls

    Working with dates and times in web development can be challenging, especially when dealing with applications that need…

  • Les "SOLID Principles"

    Les "SOLID Principles"

    Les principes SOLID représentent un ensemble de cinq concepts fondamentaux pour la conception et la structuration du…

  • JAVA - String concatenation in a loop does not scale Pitfall

    JAVA - String concatenation in a loop does not scale Pitfall

    Consider the following code as an illustration: Unfortunate this code is inefficient if the words list is long. The…

  • Types of Recursion in Java

    Types of Recursion in Java

    In java recursion can be categorized as Head recursion Tail recursion 1 - Head recursion A recursion is called head…

  • Contact Form 7 and custom post type

    Contact Form 7 and custom post type

    Contact Form 7 such a bless for wordpress blogs, But in my opinion it's limited "side-content"; meaning we customer…

  • Activate Caching in your website

    Activate Caching in your website

    Some people still hate the idea of using ready website such Wordpress , Prestashop..

  • Why GET Freelancer Not en Employee, "Six Whys"

    Why GET Freelancer Not en Employee, "Six Whys"

    So, why would you hire a freelancer over an employee? BEING PAID BY THE HOUR OR DAY MAKES US MORE PRODUCTIVE When…

  • Xampp & DropBox/OneDrive/Google Drive

    Xampp & DropBox/OneDrive/Google Drive

    With me where ever i go As many developer we would like to have ower workspace available were ever we go. Recently i…

    11 条评论

社区洞察

其他会员也浏览了