You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PHP 7 introduced a $levels parameter for the dirname() function. Using this parameter is more efficient than having several nested calls to the dirname() function.
Short description
PHP 7 introduced a
$levels
parameter for thedirname()
function. Using this parameter is more efficient than having several nested calls to thedirname()
function.Related PHPCompatibility sniff(s):
NewFunctionParameters
PHP manual references:
http://php.net/manual/en/function.dirname.php
Example code:
Detect the following code pattern(s):
And fix these to:
Notes for implementation of the sniff:
Loosely related to issue #2
The text was updated successfully, but these errors were encountered: