Skip to content

Commit

Permalink
Fix return type
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeckerson committed Sep 11, 2021
1 parent 6925898 commit 85f3135
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/Application/AbstractApplication.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public function getEventsManager(): ?ManagerInterface
* Gets the module definition registered in the application via module name
*
* @param string $name *
* @return array|mixed
* @return array
*/
public function getModule(string $name): array
{
Expand Down
2 changes: 1 addition & 1 deletion src/Dispatcher/AbstractDispatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ public function callActionMethod($handler, string $actionMethod, array $params =
* Process the results of the router by calling into the appropriate
* controller action(s) including any routing data or injected parameters.
*
* @return mixed Returns the dispatched handler class (the Controller for Mvc dispatching or a Task
* @return bool Returns the dispatched handler class (the Controller for Mvc dispatching or a Task
* for CLI dispatching) or <tt>false</tt> if an exception occurred and the operation was
* stopped by returning <tt>false</tt> in the exception handler.
*
Expand Down
2 changes: 1 addition & 1 deletion src/Dispatcher/DispatcherInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ interface DispatcherInterface
/**
* Dispatches a handle action taking into account the routing parameters
*
* @return mixed
* @return bool
*/
public function dispatch(): bool;

Expand Down
2 changes: 1 addition & 1 deletion src/Helper/Json.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ final public static function decode(string $data, bool $associative = false, int
* @param int $options Bitmask of JSON decode options.
* @param int $depth Recursion depth.
*
* @return mixed
* @return string
*
* @throws \InvalidArgumentException if the JSON cannot be encoded.
* @link http://www.php.net/manual/en/function.json-encode.php
Expand Down
2 changes: 1 addition & 1 deletion src/Mvc/Model/Binder.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public function bindToHandler($handler, array $params, string $cacheKey, string
/**
* Find the model by param value.
*
* @return mixed
* @return bool
* @param mixed $paramValue
* @param string $className
*/
Expand Down

0 comments on commit 85f3135

Please sign in to comment.