I don't think any junior-middle php developer with understand how "(int)" works. Just make a test and see how many will answer (int)'asd' with 1.
Regards Thomas S.A.N wrote on 15.01.2015 22:18: > The main advantage of the two syntaxes: > > 1. Strict > function bar(int $num){} > > 2. Weak > function bar((int) $num){} > > Any junior-middle PHP developer, seeing this syntax in the code can > understand how it works, without studying the documentation and without your > complex conversion tables. > > Explicit is better than implicit, is the motto Python, here it is very > relevant. > -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php