Skip to content

Commit acdfe00

Browse files
Merge branch '4.4'
* 4.4: [ErrorRenderer] FlattenException cannot be final Fixing issue where worker-only middleware were run in all contexts [Messenger] Removing "sync" transport and replacing it with much nicer config trick Use port 465 for SES SMTP transport [DI] made the `%env(base64:...)%` processor able to decode base64url [VarDumper] improve displaying cut closures Set ReturnType of LockFactory to LockInterface [EventDispatcher] handle lazy-callable invokable
2 parents a0bdec5 + 1fe769e commit acdfe00

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Caster/CutStub.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ public function __construct($value)
2828
case 'object':
2929
$this->type = self::TYPE_OBJECT;
3030
$this->class = \get_class($value);
31+
32+
if ($value instanceof \Closure) {
33+
ReflectionCaster::castClosure($value, [], $this, true, Caster::EXCLUDE_VERBOSE);
34+
}
35+
3136
$this->cut = -1;
3237
break;
3338

0 commit comments

Comments
 (0)