Skip to content

Commit

Permalink
Added psalm docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Toflar committed Jun 9, 2021
1 parent aae1091 commit 0a83cbe
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions core-bundle/src/Routing/ResponseContext/ResponseContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,12 @@ public function has(string $serviceId): bool
}

/**
* @throws ServiceNotFoundException
* @template T
* @psalm-param class-string<T> $serviceId
* @psalm-return T
*
* @return mixed
* @return object
* @throws ServiceNotFoundException
*/
public function get(string $serviceId)
{
Expand Down

0 comments on commit 0a83cbe

Please sign in to comment.