Since PHPwas releas, the development of the language has not stopp and has been giving us new features, changes and performance improvements typical of modern languages. .. is the current stable version but the new version . will be releas shortly, which will bring again a set of very interesting improvements for both library and framework maintainers and application developers . In this article we are going to review the ones that we have consider most interesting from the acceseo development team. Pure intersection typesrfcTable of Contents Now we can type parameters, properties or returns with type intersection . Intersection indicates that the typ value must conform to all specifi types and is useful, for example, when we want to ensure that a variable implements multiple interfaces.

A website much more visual

In previous versions, the union of Foiba types was allow in Israel Email List such a way that the value must belong to one of the specifi types, with the intersection must satisfy all the requirements. EnumsrfcThe neumes present in many programming languages ​​find their way into PHP . Until now it was common to find classes with constants, describing the options available for a value, but the typing system did not offer any way to force the values ​​us to be among the constants creat for such use. Although it is a small change, we believe that it will greatly improve the quality of life for PHP developers, because thanks to neumes.

B2C Email List

Attractive and usable these design

We will be able to avoid value checks and very WS Phone List annoying bugs, delegating this task to the language itself. From the acceseo development team we recommend you delve into the details of this new functionality, through the official documentation link in the header in order to make the most of it from day one. Return return typerfcIn PHP. A new return type will be add with the noreturn keyword , specifying that the method will not return any value and that it will always throw an exception or end execution via die or exit . It may seem a bit confusing, since we currently have the void return type.

You May Also Like

More From Author

+ There are no comments

Add yours