PHP 5.3: new ForbiddenToStringParameters sniff (part 2) by jrfnl · Pull Request #830 · PHPCompatibility/PHPCompatibility
> The __toString() magic method can no longer accept arguments. Ref: https://www.php.net/manual/en/migration53.incompatible.php This introduces a sister-sniff called `PHPCompatibility.MethodUse.ForbiddenToStringParameters` to the `PHPCompatibility.FunctionDeclarations.ForbiddenToStringParameters` which will detect parameters being passed in direct calls to the magic `__toString()` method. (as per my previous remark in 815)
wimg approved these changes Jun 26, 2019
wimg
deleted the
php-5.3/new-methoduse-forbiddentostringparameters-sniff
branch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters