I am having trouble wrapping my head around the importance of Type hinting in PHP.
Apparently \'type hinting\' in PHP can be defined as follows:
Is it necessary? No
Is it a best-practice? Yes
Which PHP version supports it? PHP 5.6 for classes only, PHP 7+ allows type-hinting for primitives (int, string, boolean, etc) as well.
How is it useful?