Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Internal/Schema/SingleCastUnionToType.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ public static function generate(BuilderFactory $builderFactory, string $pathPref
'hydrateObject',
[
$builderFactory->classConstFetch(
$classString->relative,
$classString->fullyQualified->source,
'class',
),
$builderFactory->var('value'),
Expand Down
2 changes: 1 addition & 1 deletion src/Internal/UnionTypeUtils.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@
$typeList = [];
if (is_array($type->payload)) {
foreach ($type->payload as $typeInUnion) {
$typeList[] = match (gettype($typeInUnion->payload)) {

Check warning on line 25 in src/Internal/UnionTypeUtils.php

View workflow job for this annotation

GitHub Actions / Continuous Integration / Continuous Integration / Run mutation-testing on PHP 8.2 (nts) with lowest dependency preference

Escaped Mutant for Mutator "MatchArmRemoval": --- Original +++ New @@ @@ $typeList[] = match (gettype($typeInUnion->payload)) { 'string' => $typeInUnion->payload, 'array' => 'array', - 'object' => match ($typeInUnion->payload::class) { - Representation\Namespaced\Schema::class => $typeInUnion->payload->className->fullyQualified->source, - Representation\Namespaced\Property\Type::class => self::buildUnionType($typeInUnion->payload), - }, }; } } else {

Check warning on line 25 in src/Internal/UnionTypeUtils.php

View workflow job for this annotation

GitHub Actions / Continuous Integration / Continuous Integration / Run mutation-testing on PHP 8.2 (nts) with locked dependency preference

Escaped Mutant for Mutator "MatchArmRemoval": --- Original +++ New @@ @@ $typeList[] = match (gettype($typeInUnion->payload)) { 'string' => $typeInUnion->payload, 'array' => 'array', - 'object' => match ($typeInUnion->payload::class) { - Representation\Namespaced\Schema::class => $typeInUnion->payload->className->fullyQualified->source, - Representation\Namespaced\Property\Type::class => self::buildUnionType($typeInUnion->payload), - }, }; } } else {

Check warning on line 25 in src/Internal/UnionTypeUtils.php

View workflow job for this annotation

GitHub Actions / Continuous Integration / Continuous Integration / Run mutation-testing on PHP 8.2 (nts) with highest dependency preference

Escaped Mutant for Mutator "MatchArmRemoval": --- Original +++ New @@ @@ $typeList[] = match (gettype($typeInUnion->payload)) { 'string' => $typeInUnion->payload, 'array' => 'array', - 'object' => match ($typeInUnion->payload::class) { - Representation\Namespaced\Schema::class => $typeInUnion->payload->className->fullyQualified->source, - Representation\Namespaced\Property\Type::class => self::buildUnionType($typeInUnion->payload), - }, }; } } else {

Check warning on line 25 in src/Internal/UnionTypeUtils.php

View workflow job for this annotation

GitHub Actions / Continuous Integration / Continuous Integration / Run mutation-testing on PHP 8.2 (zts) with lowest dependency preference

Escaped Mutant for Mutator "MatchArmRemoval": --- Original +++ New @@ @@ $typeList[] = match (gettype($typeInUnion->payload)) { 'string' => $typeInUnion->payload, 'array' => 'array', - 'object' => match ($typeInUnion->payload::class) { - Representation\Namespaced\Schema::class => $typeInUnion->payload->className->fullyQualified->source, - Representation\Namespaced\Property\Type::class => self::buildUnionType($typeInUnion->payload), - }, }; } } else {

Check warning on line 25 in src/Internal/UnionTypeUtils.php

View workflow job for this annotation

GitHub Actions / Continuous Integration / Continuous Integration / Run mutation-testing on PHP 8.2 (zts) with locked dependency preference

Escaped Mutant for Mutator "MatchArmRemoval": --- Original +++ New @@ @@ $typeList[] = match (gettype($typeInUnion->payload)) { 'string' => $typeInUnion->payload, 'array' => 'array', - 'object' => match ($typeInUnion->payload::class) { - Representation\Namespaced\Schema::class => $typeInUnion->payload->className->fullyQualified->source, - Representation\Namespaced\Property\Type::class => self::buildUnionType($typeInUnion->payload), - }, }; } } else {

Check warning on line 25 in src/Internal/UnionTypeUtils.php

View workflow job for this annotation

GitHub Actions / Continuous Integration / Continuous Integration / Run mutation-testing on PHP 8.2 (zts) with highest dependency preference

Escaped Mutant for Mutator "MatchArmRemoval": --- Original +++ New @@ @@ $typeList[] = match (gettype($typeInUnion->payload)) { 'string' => $typeInUnion->payload, 'array' => 'array', - 'object' => match ($typeInUnion->payload::class) { - Representation\Namespaced\Schema::class => $typeInUnion->payload->className->fullyQualified->source, - Representation\Namespaced\Property\Type::class => self::buildUnionType($typeInUnion->payload), - }, }; } } else {

Check warning on line 25 in src/Internal/UnionTypeUtils.php

View workflow job for this annotation

GitHub Actions / Continuous Integration / Continuous Integration / Run mutation-testing on PHP 8.3 (nts) with lowest dependency preference

Escaped Mutant for Mutator "MatchArmRemoval": --- Original +++ New @@ @@ $typeList[] = match (gettype($typeInUnion->payload)) { 'string' => $typeInUnion->payload, 'array' => 'array', - 'object' => match ($typeInUnion->payload::class) { - Representation\Namespaced\Schema::class => $typeInUnion->payload->className->fullyQualified->source, - Representation\Namespaced\Property\Type::class => self::buildUnionType($typeInUnion->payload), - }, }; } } else {

Check warning on line 25 in src/Internal/UnionTypeUtils.php

View workflow job for this annotation

GitHub Actions / Continuous Integration / Continuous Integration / Run mutation-testing on PHP 8.3 (nts) with locked dependency preference

Escaped Mutant for Mutator "MatchArmRemoval": --- Original +++ New @@ @@ $typeList[] = match (gettype($typeInUnion->payload)) { 'string' => $typeInUnion->payload, 'array' => 'array', - 'object' => match ($typeInUnion->payload::class) { - Representation\Namespaced\Schema::class => $typeInUnion->payload->className->fullyQualified->source, - Representation\Namespaced\Property\Type::class => self::buildUnionType($typeInUnion->payload), - }, }; } } else {

Check warning on line 25 in src/Internal/UnionTypeUtils.php

View workflow job for this annotation

GitHub Actions / Continuous Integration / Continuous Integration / Run mutation-testing on PHP 8.3 (nts) with highest dependency preference

Escaped Mutant for Mutator "MatchArmRemoval": --- Original +++ New @@ @@ $typeList[] = match (gettype($typeInUnion->payload)) { 'string' => $typeInUnion->payload, 'array' => 'array', - 'object' => match ($typeInUnion->payload::class) { - Representation\Namespaced\Schema::class => $typeInUnion->payload->className->fullyQualified->source, - Representation\Namespaced\Property\Type::class => self::buildUnionType($typeInUnion->payload), - }, }; } } else {

Check warning on line 25 in src/Internal/UnionTypeUtils.php

View workflow job for this annotation

GitHub Actions / Continuous Integration / Continuous Integration / Run mutation-testing on PHP 8.3 (zts) with lowest dependency preference

Escaped Mutant for Mutator "MatchArmRemoval": --- Original +++ New @@ @@ $typeList[] = match (gettype($typeInUnion->payload)) { 'string' => $typeInUnion->payload, 'array' => 'array', - 'object' => match ($typeInUnion->payload::class) { - Representation\Namespaced\Schema::class => $typeInUnion->payload->className->fullyQualified->source, - Representation\Namespaced\Property\Type::class => self::buildUnionType($typeInUnion->payload), - }, }; } } else {

Check warning on line 25 in src/Internal/UnionTypeUtils.php

View workflow job for this annotation

GitHub Actions / Continuous Integration / Continuous Integration / Run mutation-testing on PHP 8.3 (zts) with locked dependency preference

Escaped Mutant for Mutator "MatchArmRemoval": --- Original +++ New @@ @@ $typeList[] = match (gettype($typeInUnion->payload)) { 'string' => $typeInUnion->payload, 'array' => 'array', - 'object' => match ($typeInUnion->payload::class) { - Representation\Namespaced\Schema::class => $typeInUnion->payload->className->fullyQualified->source, - Representation\Namespaced\Property\Type::class => self::buildUnionType($typeInUnion->payload), - }, }; } } else {

Check warning on line 25 in src/Internal/UnionTypeUtils.php

View workflow job for this annotation

GitHub Actions / Continuous Integration / Continuous Integration / Run mutation-testing on PHP 8.3 (zts) with highest dependency preference

Escaped Mutant for Mutator "MatchArmRemoval": --- Original +++ New @@ @@ $typeList[] = match (gettype($typeInUnion->payload)) { 'string' => $typeInUnion->payload, 'array' => 'array', - 'object' => match ($typeInUnion->payload::class) { - Representation\Namespaced\Schema::class => $typeInUnion->payload->className->fullyQualified->source, - Representation\Namespaced\Property\Type::class => self::buildUnionType($typeInUnion->payload), - }, }; } } else {
'string' => $typeInUnion->payload,
'array' => 'array',
'object' => match ($typeInUnion->payload::class) {
Representation\Namespaced\Schema::class => $typeInUnion->payload->className->relative,
Representation\Namespaced\Schema::class => $typeInUnion->payload->className->fullyQualified->source,
Representation\Namespaced\Property\Type::class => self::buildUnionType($typeInUnion->payload),
},
};
Expand Down
Loading