Skip to content

Commit d9f0abf

Browse files
committed
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
1 parent 4c3b162 commit d9f0abf

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

system/Test/PhpStreamWrapper.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@
2020
*/
2121
final class PhpStreamWrapper
2222
{
23+
/**
24+
* @var resource|null
25+
*/
26+
public $context;
27+
2328
private static string $content = '';
2429
private int $position = 0;
2530

0 commit comments

Comments
 (0)