diff --git a/src/Support/ClosureStream.php b/src/Support/ClosureStream.php index 57625fec..9f3ef6c8 100644 --- a/src/Support/ClosureStream.php +++ b/src/Support/ClosureStream.php @@ -2,6 +2,7 @@ namespace Laravel\SerializableClosure\Support; +#[\AllowDynamicProperties] class ClosureStream { /** @@ -37,13 +38,6 @@ class ClosureStream */ protected $pointer = 0; - /** - * The stream context. - * - * @var string - */ - public $context; - /** * Opens file or URL. * diff --git a/tests/SerializerTest.php b/tests/SerializerTest.php index 49445cf3..75287396 100644 --- a/tests/SerializerTest.php +++ b/tests/SerializerTest.php @@ -317,7 +317,7 @@ function () { test('mixed encodings', function () { $a = iconv('utf-8', 'utf-16', 'Düsseldorf'); - $b = utf8_decode('Düsseldorf'); + $b = mb_convert_encoding('Düsseldorf', 'ISO-8859-1', 'UTF-8'); $closure = function () use ($a, $b) { return [$a, $b];