From 3065acbd8fecb8a45bf829f91afb2f724f2e90e9 Mon Sep 17 00:00:00 2001 From: Dmitrii Derepko Date: Sun, 8 Oct 2023 12:43:14 +0300 Subject: [PATCH] Fix tests --- src/Collector/Stream/FilesystemStreamProxy.php | 2 ++ src/Collector/Stream/HttpStreamProxy.php | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/Collector/Stream/FilesystemStreamProxy.php b/src/Collector/Stream/FilesystemStreamProxy.php index 46030354..f419f72a 100644 --- a/src/Collector/Stream/FilesystemStreamProxy.php +++ b/src/Collector/Stream/FilesystemStreamProxy.php @@ -4,6 +4,7 @@ namespace Yiisoft\Yii\Debug\Collector\Stream; +use Yiisoft\Strings\CombinedRegexp; use Yiisoft\Yii\Debug\Helper\BacktraceIgnoreMatcher; use Yiisoft\Yii\Debug\Helper\StreamWrapper\StreamWrapper; use Yiisoft\Yii\Debug\Helper\StreamWrapper\StreamWrapperInterface; @@ -67,6 +68,7 @@ public static function register(): void */ class_exists(BacktraceIgnoreMatcher::class); class_exists(StreamWrapper::class); + class_exists(CombinedRegexp::class); stream_wrapper_unregister('file'); stream_wrapper_register('file', self::class, STREAM_IS_URL); self::$registered = true; diff --git a/src/Collector/Stream/HttpStreamProxy.php b/src/Collector/Stream/HttpStreamProxy.php index 4a6050cc..39212a80 100644 --- a/src/Collector/Stream/HttpStreamProxy.php +++ b/src/Collector/Stream/HttpStreamProxy.php @@ -4,6 +4,7 @@ namespace Yiisoft\Yii\Debug\Collector\Stream; +use Yiisoft\Strings\CombinedRegexp; use Yiisoft\Yii\Debug\Helper\BacktraceIgnoreMatcher; use Yiisoft\Yii\Debug\Helper\StreamWrapper\StreamWrapper; use Yiisoft\Yii\Debug\Helper\StreamWrapper\StreamWrapperInterface; @@ -68,6 +69,7 @@ public static function register(): void */ class_exists(BacktraceIgnoreMatcher::class); class_exists(StreamWrapper::class); + class_exists(CombinedRegexp::class); stream_wrapper_unregister('http'); stream_wrapper_register('http', self::class, STREAM_IS_URL); stream_wrapper_unregister('https');