Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
priyadi committed Jan 24, 2024
1 parent 8f7ab02 commit f9b85a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/TransformerRegistry/TransformerRegistry.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,15 +72,15 @@ public function findBySourceAndTargetTypes(

foreach ($sourceTypes as $sourceType) {
if (
!TypeCheck::isVariableInstanceOf($sourceType, $mappingSourceType)
!TypeCheck::isTypeInstanceOf($sourceType, $mappingSourceType)
) {
continue;
}

foreach ($targetTypes as $targetType) {
if ($mappingIsVariantTarget) {
if (
TypeCheck::isVariableInstanceOf($targetType, $mappingTargetType)
TypeCheck::isTypeInstanceOf($targetType, $mappingTargetType)
) {
$searchResultEntries[$mappingEntry->getOrder()] =
new SearchResultEntry(
Expand Down

0 comments on commit f9b85a8

Please sign in to comment.