From 600f160be4957c9c9f018da84398e2ff1cafd3f7 Mon Sep 17 00:00:00 2001 From: Markus Staab Date: Thu, 29 Dec 2022 16:05:44 +0100 Subject: [PATCH] Fix fatal error when autoloader open directories --- .../SourceLocator/FileReadTrapStreamWrapper.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/Reflection/BetterReflection/SourceLocator/FileReadTrapStreamWrapper.php b/src/Reflection/BetterReflection/SourceLocator/FileReadTrapStreamWrapper.php index 10e2f78e544..0d85c750d00 100644 --- a/src/Reflection/BetterReflection/SourceLocator/FileReadTrapStreamWrapper.php +++ b/src/Reflection/BetterReflection/SourceLocator/FileReadTrapStreamWrapper.php @@ -259,4 +259,11 @@ public function stream_set_option($option, $arg1, $arg2): bool return false; } + public function dir_opendir(string $path, int $options): bool { + return true; + } + + public function dir_readdir(): string { + return ''; + } }