Skip to content

Commit

Permalink
[Env] ignore current_exec symlink coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
azjezz committed Oct 7, 2020
1 parent 9f3f54a commit 05c4ce6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Psl/Env/current_exec.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,12 @@
function current_exec(): string
{
$executable = realpath((string) $_SERVER['SCRIPT_NAME']);
// @codeCoverageIgnoreStart
if (is_link($executable)) {
/** @var string $executable */
$executable = readlink($executable);
}
// @codeCoverageIgnoreEnd

return $executable;
}

0 comments on commit 05c4ce6

Please sign in to comment.