diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 9d4aa2a4..a36a73dc 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -13,7 +13,7 @@ jobs: strategy: fail-fast: true matrix: - php: [7.3, 7.4, 8.0, 8.1] + php: [7.3, 7.4, 8.0, 8.1, 8.2] name: PHP ${{ matrix.php }} diff --git a/src/Support/ClosureStream.php b/src/Support/ClosureStream.php index b54558b8..9f3ef6c8 100644 --- a/src/Support/ClosureStream.php +++ b/src/Support/ClosureStream.php @@ -2,6 +2,7 @@ namespace Laravel\SerializableClosure\Support; +#[\AllowDynamicProperties] class ClosureStream { /** diff --git a/tests/ReflectionClosure1Test.php b/tests/ReflectionClosure1Test.php index c8ed62e5..bc564f14 100644 --- a/tests/ReflectionClosure1Test.php +++ b/tests/ReflectionClosure1Test.php @@ -276,9 +276,9 @@ test('interpolation1', function () { $f1 = function () { - return "${foo}${bar}{$foobar}"; + return "{$foo}{$bar}{$foobar}"; }; $e1 = 'function () { - return "${foo}${bar}{$foobar}"; + return "{$foo}{$bar}{$foobar}"; }'; }); 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];