Skip to content

Commit 47afb7f

Browse files
authored
Merge pull request #57 from laravel/php82-support
[1.x] Adds PHP 8.2 Support
2 parents b456045 + 0f59101 commit 47afb7f

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
strategy:
1414
fail-fast: true
1515
matrix:
16-
php: [7.3, 7.4, 8.0, 8.1]
16+
php: [7.3, 7.4, 8.0, 8.1, 8.2]
1717

1818
name: PHP ${{ matrix.php }}
1919

src/Support/ClosureStream.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace Laravel\SerializableClosure\Support;
44

5+
#[\AllowDynamicProperties]
56
class ClosureStream
67
{
78
/**

tests/ReflectionClosure1Test.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -276,9 +276,9 @@
276276

277277
test('interpolation1', function () {
278278
$f1 = function () {
279-
return "${foo}${bar}{$foobar}";
279+
return "{$foo}{$bar}{$foobar}";
280280
};
281281
$e1 = 'function () {
282-
return "${foo}${bar}{$foobar}";
282+
return "{$foo}{$bar}{$foobar}";
283283
}';
284284
});

tests/SerializerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ function () {
317317

318318
test('mixed encodings', function () {
319319
$a = iconv('utf-8', 'utf-16', 'Düsseldorf');
320-
$b = utf8_decode('Düsseldorf');
320+
$b = mb_convert_encoding('Düsseldorf', 'ISO-8859-1', 'UTF-8');
321321

322322
$closure = function () use ($a, $b) {
323323
return [$a, $b];

0 commit comments

Comments
 (0)