PHP 7.1: Nullable Types and the Void Return Type
PHP 7.1's nullable types and void return type make function signatures more readable and precise, so one glance shows whether a function can return null.
Tag
Building applications with PHP: language features, versions and practices, covered in posts, notes, short guides and practical examples. (Page 7/9)
There are 49 posts with this tag.
PHP 7.1's nullable types and void return type make function signatures more readable and precise, so one glance shows whether a function can return null.
How I use interface definitions and dependency injection in PHP to build loosely coupled classes, illustrated with practical examples.
How I apply SRP, the S in SOLID, to PHP classes with concrete examples, moving beyond abstract theory and asking where it is reasonable to stop splitting.
A practical look at how I use the scalar type declarations and return types introduced in PHP 7, including what strict_types mode changes in practice.
PHP 7.0 was released this week. I share my first impressions on the performance gains, scalar type declarations, and return types.
I built a PHP package from scratch and published it on Packagist so others could use it: package structure, composer.json, GitHub and the update webhook.