dir_constant
Replaces dirname(__FILE__) expression with equivalent __DIR__ constant.
dirname(__FILE__)
__DIR__
Risky when the function dirname is overridden.
dirname
--- Original +++ New <?php -$a = dirname(__FILE__); +$a = __DIR__;
The rule is part of the following rule sets:
@PhpCsFixer:risky
@Symfony:risky