combine_nested_dirname
Replace multiple nested calls of dirname by only one call with second $level parameter. Requires PHP >= 7.0.
dirname
$level
Risky when the function dirname is overridden.
--- Original +++ New <?php -dirname(dirname(dirname($path))); +dirname($path, 3);
The rule is part of the following rule sets:
@PHP70Migration:risky
@PHP71Migration:risky
@PHP74Migration:risky
@PHP80Migration:risky
@PhpCsFixer:risky
@Symfony:risky