From d9f0abffcd2b5f528d8c1f2cd19a5964ba0610f7 Mon Sep 17 00:00:00 2001 From: kenjis Date: Sat, 22 Oct 2022 10:36:53 +0900 Subject: [PATCH] fix: add missing property $context See https://www.php.net/manual/en/class.streamwrapper.php#streamwrapper.props In PHP 8.2, the following error ocurrs: ErrorException: Creation of dynamic property CodeIgniter\Test\PhpStreamWrapper::$context is deprecated --- system/Test/PhpStreamWrapper.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/system/Test/PhpStreamWrapper.php b/system/Test/PhpStreamWrapper.php index 6bbb4d144b6b..9ef3d7d4398c 100644 --- a/system/Test/PhpStreamWrapper.php +++ b/system/Test/PhpStreamWrapper.php @@ -20,6 +20,11 @@ */ final class PhpStreamWrapper { + /** + * @var resource|null + */ + public $context; + private static string $content = ''; private int $position = 0;