Given we have dropped support for PHP 7.1 and lower, let's utilise new language features available to us in PHP 7.2 and newer. This allows us to simplify our codebase with neat little features such as the null coalesce operator and enforce stricter typed parameters/returns as these are taken care at the language level.
Todo:
[x] Update type declarations
[x] Utilise null coalesce operator where available
Given we have dropped support for PHP 7.1 and lower, let's utilise new language features available to us in PHP 7.2 and newer. This allows us to simplify our codebase with neat little features such as the null coalesce operator and enforce stricter typed parameters/returns as these are taken care at the language level.
Todo: