diff --git a/.deepsource.toml b/.deepsource.toml deleted file mode 100644 index 15b54e2..0000000 --- a/.deepsource.toml +++ /dev/null @@ -1,7 +0,0 @@ -version = 1 - -[[analyzers]] -name = "php" - -[[analyzers]] -name = "shell" \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 35df7e2..59a4e8d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/src/App.php b/src/App.php index ae61c3f..3408831 100644 --- a/src/App.php +++ b/src/App.php @@ -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. */