Scalar type hinting and return types in PHP7: the movie
Summary
This is a quick look at scalars and return types being introduced in the upcoming PHP7.
Do we really need those changes? Are they going to change or even possibly destroy PHP with it’s beloved excellent dynamic nature? Or maybe we, as developers, can gain a powerful tool and push our code to the next level?
In the video I try to answer those questions and give you a basic feeling of the possible usage, possibilities and restrictions of the new features in PHP7.
Just check it to find out more.
References:
https://wiki.php.net/rfc/scalar_type_hints_v5
https://wiki.php.net/rfc/return_types
http://share.ez.no/blogs/core-development-team/php-7.0-why-scalar-type-hints-with-strict-mode-and-stricter-weak-mode
http://blog.pascal-martin.fr/post/in-favor-of-rfc-scalar-type-hints.htm