Skip to content

Commit

Permalink
Fix psalm issues
Browse files Browse the repository at this point in the history
  • Loading branch information
franmomu committed Apr 5, 2021
1 parent 7efb1b9 commit d892fda
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
use function array_map;
use function array_reverse;
use function array_unshift;
use function assert;
use function explode;
use function sprintf;
use function str_replace;
Expand Down Expand Up @@ -220,6 +221,7 @@ public function getMetadataFor($className)

$realClassName = $this->getFqcnFromAlias($namespaceAlias, $simpleClassName);
} else {
/** @psalm-var class-string $className */
$realClassName = $this->getRealClass($className);
}

Expand Down Expand Up @@ -489,6 +491,8 @@ private function getRealClass(string $class): string
$this->createDefaultProxyClassNameResolver();
}

assert($this->proxyClassNameResolver instanceof ProxyClassNameResolver);

return $this->proxyClassNameResolver->resolveClassName($class);
}

Expand Down

0 comments on commit d892fda

Please sign in to comment.