Skip to content

Commit da681ef

Browse files
committed
Replace dirname(__FILE__) by __DIR__
1 parent b32059b commit da681ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PhpGitHooks/Infrastructure/Tool/ToolPathFinder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function find($tool)
3030
$package = $this->installedPackages[$this->tools[$tool]];
3131
foreach ($package['bin'] as $bin) {
3232
if (preg_match("#${tool}$#", $bin)) {
33-
return dirname(__FILE__).self::COMPOSER_VENDOR_DIR.$package['name'].DIRECTORY_SEPARATOR.$bin;
33+
return __DIR__.self::COMPOSER_VENDOR_DIR.$package['name'].DIRECTORY_SEPARATOR.$bin;
3434
}
3535
}
3636
}

0 commit comments

Comments
 (0)