PHP Architect · Vol 18, Issue 3 · March 2019
Education Station: Explicit is Better Than Implicit
by Chris Tankersley
The argument over strict typing is nothing new in PHP. When the PHP 7.0 release was under development and the idea of scalar type hinting came up, there were developers on all sides with opinions on how it should work. While PHP 7.0 could introduce backward compatibility breaks, introducing strict typing had the potential to break years and years worth of code. How far the language went with this surfaced a variety of opinions. Let's look at the benefits of using scalar type hints to clarify the intent of your code.
The full article is in PHP Architect Vol 18, Issue 3. Subscribe to read it and every new issue.