Skip to content

Commit

Permalink
Merge pull request #56 from estevao90/estevao90-phpdoc
Browse files Browse the repository at this point in the history
Fix the return type of the callback function in the App class
  • Loading branch information
lucatume authored Apr 28, 2023
2 parents a7a1202 + 5d3cdef commit 94557a5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
7 changes: 0 additions & 7 deletions .deepsource.toml

This file was deleted.

4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ to [Semantic Versioning](http://semver.org/).

## [unreleased] Unreleased

### Fixed

- Return value of the `App::callback` method to be `callable` (thanks @estevao90).

## [3.3.2] 2023-04-07;

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion src/App.php
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ public static function give($implementation)
* @param string $method The method that should be called on the resolved implementation with the
* specified array arguments.
*
* @return mixed The called method return value.
* @return callable The callback function.
*
* @throws ContainerException If the id is not a bound implementation or valid class name.
*/
Expand Down

0 comments on commit 94557a5

Please sign in to comment.