Type-safe callables in PHP by interfaces with __invoke()
The type system in PHP has become safer each version since PHP 7.0, by using a strict type declaration on top of the PHP file. As a newly-developed feature, it doesn’t come with the billion-dollar mistake of allowing NULL for variables declared…