Skip to content

Commit

Permalink
Improved static analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
awd-studio committed Oct 8, 2019
1 parent f6f1198 commit 52167dc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
4 changes: 3 additions & 1 deletion src/ServiceBuses/Core/Bus/BusProcessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ public function __construct(HandlerLocator $handlers, MiddlewareChain $middlewar
*
* @param object $message
*
* @return callable[]
* @return iterable
*
* @psalm-return iterable<int, callable>
*
* @throws \AwdStudio\ServiceBuses\Exception\HandlerNotDefined
* @throws \AwdStudio\ServiceBuses\Exception\WrongMessage
Expand Down
7 changes: 5 additions & 2 deletions src/ServiceBuses/Core/Handing/HandlerLocator.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,12 @@ interface HandlerLocator
*
* @param string $message A FQCN of class to handle.
*
* @psalm-param class-string $message
* @psalm-param class-string $message
*
* @return iterable The list handler for a message.
*
* @psalm-return iterable<int, callable>
*
* @return callable[] The list handler for a message.
* @throws \AwdStudio\ServiceBuses\Exception\HandlerNotDefined
*/
public function get(string $message): iterable;
Expand Down

0 comments on commit 52167dc

Please sign in to comment.