Skip to content

Commit 08a4fdf

Browse files
committed
fix: Fix issue PHPStorm didn't detect
1 parent a3dee93 commit 08a4fdf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Concise.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,12 +87,13 @@ public function getComponentMappers(): array
8787
*/
8888
public function register(string $mapperClass): self
8989
{
90+
/** @var \Articulate\Concise\Contracts\Mapper<ObjType> $mapper */
9091
$mapper = $this->app->make($mapperClass);
9192

9293
if ($mapper instanceof EntityMapper) {
9394
$this->entityMappers[$mapper->class()] = $mapper;
9495
} else {
95-
$this->componentMappers[$mapper->getClass()] = $mapper;
96+
$this->componentMappers[$mapper->class()] = $mapper;
9697
}
9798

9899
return $this;

0 commit comments

Comments
 (0)