Skip to content

Commit

Permalink
Fix phpcbf
Browse files Browse the repository at this point in the history
  • Loading branch information
m1k3lm committed Oct 10, 2024
1 parent 0925f21 commit 7850491
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Infrastructure/ServiceRegister.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,13 @@ public static function getInstance(): ServiceRegister
/**
* Gets service for specified type.
*
* @template T
* @param class-string<T> $type
*
* @template T of object
*
* @return T
*/
public static function getService(string $type)
public static function getService(string $type): object
{
return self::getInstance()->get($type);
}
Expand Down

0 comments on commit 7850491

Please sign in to comment.