We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2121637 commit 15f4e3dCopy full SHA for 15f4e3d
tests/SerializerTest.php
@@ -414,6 +414,19 @@ function () {
414
expect($r)->toEqual($carbon);
415
})->with('serializers');
416
417
+test('serializes carbon immutable objects', function () {
418
+ $carbon = new \Carbon\CarbonImmutable('now');
419
+
420
+ $closure = function () use ($carbon) {
421
+ return $carbon;
422
+ };
423
424
+ $u = s($closure);
425
+ $r = $u();
426
427
+ expect($r)->toEqual($carbon);
428
+})->with('serializers');
429
430
class A
431
{
432
protected static function aStaticProtected()
0 commit comments