From 3a5a630757e96f952a133e1806b7ad11d94015d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Ol=C5=A1avsk=C3=BD?= Date: Mon, 9 Sep 2024 15:59:04 +0200 Subject: [PATCH] Update src/Compiler/Exception/CannotCompileMapperException.php MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Jan TvrdĂ­k --- src/Compiler/Exception/CannotCompileMapperException.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Compiler/Exception/CannotCompileMapperException.php b/src/Compiler/Exception/CannotCompileMapperException.php index 36fad44..0192f93 100644 --- a/src/Compiler/Exception/CannotCompileMapperException.php +++ b/src/Compiler/Exception/CannotCompileMapperException.php @@ -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); }