Skip to content

Commit

Permalink
Merge pull request #57 from laravel/php82-support
Browse files Browse the repository at this point in the history
[1.x] Adds PHP 8.2 Support
  • Loading branch information
taylorotwell committed Sep 8, 2022
2 parents b456045 + 0f59101 commit 47afb7f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

Expand Down
1 change: 1 addition & 0 deletions src/Support/ClosureStream.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace Laravel\SerializableClosure\Support;

#[\AllowDynamicProperties]
class ClosureStream
{
/**
Expand Down
4 changes: 2 additions & 2 deletions tests/ReflectionClosure1Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -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}";
}';
});
2 changes: 1 addition & 1 deletion tests/SerializerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit 47afb7f

Please sign in to comment.