Skip to content

Commit

Permalink
chore: remove redundant condition
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-feek committed Jul 26, 2020
1 parent 1d8cb4d commit f68a4c2
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/ContainerResolver.php
Expand Up @@ -21,10 +21,6 @@ final class ContainerResolver
private static $cache = [];

/**
* @psalm-suppress MoreSpecificReturnType
* @psalm-suppress PropertyTypeCoercion
* @psalm-suppress LessSpecificReturnStatement
* @see https://github.com/vimeo/psalm/issues/3894
* @psalm-return class-string|null
*/
public static function resolveFromApplicationContainer(string $abstract): ?string
Expand All @@ -42,10 +38,6 @@ public static function resolveFromApplicationContainer(string $abstract): ?strin

$concreteClass = get_class($concrete);

if (!$concreteClass) {
return null;
}

static::$cache[$abstract] = $concreteClass;

return $concreteClass;
Expand Down

0 comments on commit f68a4c2

Please sign in to comment.