Skip to content

Commit

Permalink
Fix Stream::dir_opendir()
Browse files Browse the repository at this point in the history
  • Loading branch information
antecedent committed Feb 18, 2023
1 parent 56f6c99 commit e792b06
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/CodeManipulation/Stream.php
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,8 @@ public function dir_closedir()

public function dir_opendir($path, $options)
{
return static::alternate('opendir', null, __FUNCTION__, [$path], $this->context) !== false;
$this->resource = static::alternate('opendir', null, __FUNCTION__, [$path], $this->context);
return $this->resource !== false;
}

public function dir_readdir()
Expand Down

0 comments on commit e792b06

Please sign in to comment.