Back to Vol 18, Issue 3

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.

Subscribe
Chris Tankersley

About the author

Chris Tankersley

Chris Tankersley is a husband, father, author, speaker, podcast host, and PHP developer. He works for InQuest, a network security company out of Washington, DC, but lives in Northwest Ohio. Chris has worked with many different frameworks and languages throughout his twelve years of programming but spends most of his day working in PHP and Python. He is the author of Docker for Developers and works with companies and developers for integrating containers into their workflows.

Our Partners

Collaborating with industry leaders to bring you the best PHP resources and expertise

Interested in partnering? Get in touch →