Skip to content

Commit 0da6fc8

Browse files
committed
No relative classnames unless we're doing files or string concats
1 parent 55c6f90 commit 0da6fc8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Internal/Schema/SingleCastUnionToType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ public static function generate(BuilderFactory $builderFactory, string $pathPref
150150
'hydrateObject',
151151
[
152152
$builderFactory->classConstFetch(
153-
$classString->relative,
153+
$classString->fullyQualified->source,
154154
'class',
155155
),
156156
$builderFactory->var('value'),

src/Internal/UnionTypeUtils.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public static function buildUnionType(Representation\Namespaced\Property\Type $t
2626
'string' => $typeInUnion->payload,
2727
'array' => 'array',
2828
'object' => match ($typeInUnion->payload::class) {
29-
Representation\Namespaced\Schema::class => $typeInUnion->payload->className->relative,
29+
Representation\Namespaced\Schema::class => $typeInUnion->payload->className->fullyQualified->source,
3030
Representation\Namespaced\Property\Type::class => self::buildUnionType($typeInUnion->payload),
3131
},
3232
};

0 commit comments

Comments
 (0)