Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
xepozz committed Oct 8, 2023
1 parent 3eca65d commit 3065acb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Collector/Stream/FilesystemStreamProxy.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down
2 changes: 2 additions & 0 deletions src/Collector/Stream/HttpStreamProxy.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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');
Expand Down

0 comments on commit 3065acb

Please sign in to comment.