Page MenuHomePhabricator

Add sniff to detect usage of dirname( __FILE__ ) instead of __DIR__
Closed, ResolvedPublic


Just like the sniff that checks for PHP_SAPI instead of php_sapi_name().

Event Timeline

Legoktm raised the priority of this task from to Medium.
Legoktm updated the task description. (Show Details)
Legoktm added a project: MediaWiki-Codesniffer.
Legoktm moved this task to Accepted rule changes on the MediaWiki-Codesniffer board.
Legoktm added a subscriber: Legoktm.

Change 243096 had a related patch set uploaded (by TasneemLo):
Sniff to warn check usage of dirname(FILE)

Change 243096 merged by jenkins-bot:
Sniff to warn check usage of dirname(FILE)