Skip to content

Commit

Permalink
Update src/Compiler/Exception/CannotCompileMapperException.php
Browse files Browse the repository at this point in the history
Co-authored-by: Jan Tvrdík <[email protected]>
  • Loading branch information
olsavmic and JanTvrdik authored Sep 9, 2024
1 parent b255adf commit 3a5a630
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Compiler/Exception/CannotCompileMapperException.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public static function withIncompatibleSubtypeMapper(
$subtypeMapperCompilerClass = $subtypeMapperCompiler::class;
$subtypeMapperOutputType = $subtypeMapperCompiler->getOutputType();

$reason = "its output type '{$subtypeMapperOutputType}' is not super type of '{$mapperOutputType}'";
$reason = "its output type '{$subtypeMapperOutputType}' is not subtype of '{$mapperOutputType}'";
return new self("Cannot compile mapper {$subtypeMapperCompilerClass} as subtype (#[Discriminator]) mapper, because {$reason}", 0, $previous);
}

Expand Down

0 comments on commit 3a5a630

Please sign in to comment.