Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
Signed-off-by: Mior Muhammad Zaki <[email protected]>
  • Loading branch information
crynobone committed Mar 3, 2025
1 parent c7d220d commit 3e4a497
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
use PHPUnit\Runner\Version;
use RuntimeException;

use function is_link as php_is_link;

/**
* Run callback only once.
*
Expand Down Expand Up @@ -58,11 +56,11 @@ function join_paths(?string $basePath, string ...$paths): string
* @param string $path
* @return bool
*/
function is_link(string $path): bool
function is_symlink(string $path): bool
{
if (windows_os() && is_dir($path) && readlink($path) !== $path) {
return true;
} elseif (php_is_link($path)) {
} elseif (is_link($path)) {
return true;
}

Expand Down

0 comments on commit 3e4a497

Please sign in to comment.