Symfony is adding PHP type declarations to its code, with the goal of adding every possible PHP type declaration in Symfony 7.0. The changes include adding return types to methods, adding the 'void' return type, and adding types to class properties. Applications can be prepared by making changes in Symfony 6.4 and using the type patcher utility provided by Symfony.

2m read timeFrom symfony.com
Post cover image
Table of contents
Types in Symfony 7.0Preparing your ApplicationsPreparing your Open Source Libraries

Sort: