Skip to content

Commit c4a47f7

Browse files
authored
Merge pull request #127 from Dealerdirect/feature/realpath-can-return-false
Stabilize a condition
2 parents fe39059 + 50b2f26 commit c4a47f7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Plugin.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,11 @@ private function cleanInstalledPaths()
410410

411411
if (
412412
(is_dir($path) === false || is_readable($path) === false) &&
413-
(is_dir($alternativePath) === false || is_readable($alternativePath) === false)
413+
(
414+
$alternativePath === false ||
415+
is_dir($alternativePath) === false ||
416+
is_readable($alternativePath) === false
417+
)
414418
) {
415419
unset($this->installedPaths[$key]);
416420
$changes = true;

0 commit comments

Comments
 (0)