Skip to content

Commit

Permalink
Merge pull request #127 from Dealerdirect/feature/realpath-can-return…
Browse files Browse the repository at this point in the history
…-false

Stabilize a condition
  • Loading branch information
Potherca committed Dec 8, 2020
2 parents fe39059 + 50b2f26 commit c4a47f7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Plugin.php
Expand Up @@ -410,7 +410,11 @@ private function cleanInstalledPaths()

if (
(is_dir($path) === false || is_readable($path) === false) &&
(is_dir($alternativePath) === false || is_readable($alternativePath) === false)
(
$alternativePath === false ||
is_dir($alternativePath) === false ||
is_readable($alternativePath) === false
)
) {
unset($this->installedPaths[$key]);
$changes = true;
Expand Down

0 comments on commit c4a47f7

Please sign in to comment.