We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a3dee93 commit 08a4fdfCopy full SHA for 08a4fdf
src/Concise.php
@@ -87,12 +87,13 @@ public function getComponentMappers(): array
87
*/
88
public function register(string $mapperClass): self
89
{
90
+ /** @var \Articulate\Concise\Contracts\Mapper<ObjType> $mapper */
91
$mapper = $this->app->make($mapperClass);
92
93
if ($mapper instanceof EntityMapper) {
94
$this->entityMappers[$mapper->class()] = $mapper;
95
} else {
- $this->componentMappers[$mapper->getClass()] = $mapper;
96
+ $this->componentMappers[$mapper->class()] = $mapper;
97
}
98
99
return $this;
0 commit comments