Lowercase PHP Types

All PHP types used for parameter type and return type declarations should be lowercase.

Valid: Lowercase type declarations used.

function myFunction(int $foo) : string { }

Invalid: Non-lowercase type declarations used.

function myFunction(<em>Int</em> $foo) : <em>STRING</em> { }
All PHP types used for type casting should be lowercase.

Valid: Lowercase type used.

$foo = (bool) $isValid;

Invalid: Non-lowercase type used.

$foo = <em>(BOOL)</em> $isValid;