Permalink
Browse files

FileMutator: fixed error thrown when using scandir() (#395)

  • Loading branch information...
jiripudil authored and dg committed Jan 15, 2019
1 parent b441453 commit c3632ccc872bfd182404d70c7d18e3026e440a16
Showing with 3 additions and 1 deletion.
  1. +3 βˆ’1 src/Framework/FileMutator.php
@@ -43,7 +43,9 @@ public function dir_closedir(): void
public function dir_opendir(string $path, int $options): bool
{
$this->handle = $this->native('opendir', $path, $this->context);
$this->handle = $this->context
? $this->native('opendir', $path, $this->context)
: $this->native('opendir', $path);
return (bool) $this->handle;
}

0 comments on commit c3632cc

Please sign in to comment.