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 38254d5 commit ebaf88bCopy full SHA for ebaf88b
Caster/CutStub.php
@@ -27,7 +27,7 @@ public function __construct(mixed $value)
27
switch (\gettype($value)) {
28
case 'object':
29
$this->type = self::TYPE_OBJECT;
30
- $this->class = $value::class;
+ $this->class = get_debug_type($value);
31
32
if ($value instanceof \Closure) {
33
ReflectionCaster::castClosure($value, [], $this, true, Caster::EXCLUDE_VERBOSE);
0 commit comments