Closed cryptiklemur closed 9 years ago
I guess declare
function call should be allowed in general, because it also allows for PHP script to listen for ticks.
Yeah, thats another area i've seen it happen.
I've got this sniff to ignore declare statements now, so shouldn't matter what happens with the RFC.
So... Fixed? Thanks :)
Yep, fixed now.
RFC for reference: https://wiki.php.net/rfc/scalar_type_hints_v5
Doesn't necessarily need to be fixed now, but should definitely be fixed before 7.0 (assuming the RFC passes).
When adding
declare(strict_types=1);
causes phpcs to throw a warning on the PSR-2 Standard.