diff options
author | Joas Schilling <nickvergessen@owncloud.com> | 2015-09-23 10:13:41 +0200 |
---|---|---|
committer | Joas Schilling <nickvergessen@owncloud.com> | 2015-09-23 10:13:41 +0200 |
commit | ee75f9f59491cf7498cbe787694605d963b3dfc9 (patch) | |
tree | 51acba0cc05a3699727f296df68cb7f6e2bda4e6 | |
parent | 9fbd3fa6c14a59dc829a47cd334b9038777105b4 (diff) | |
download | nextcloud-server-ee75f9f59491cf7498cbe787694605d963b3dfc9.tar.gz nextcloud-server-ee75f9f59491cf7498cbe787694605d963b3dfc9.zip |
Fix type hint errors in the container and the interface
-rw-r--r-- | lib/private/appframework/utility/simplecontainer.php | 4 | ||||
-rw-r--r-- | lib/public/icontainer.php | 1 |
2 files changed, 3 insertions, 2 deletions
diff --git a/lib/private/appframework/utility/simplecontainer.php b/lib/private/appframework/utility/simplecontainer.php index 5d7ea48752b..3de6d9ba5bc 100644 --- a/lib/private/appframework/utility/simplecontainer.php +++ b/lib/private/appframework/utility/simplecontainer.php @@ -45,7 +45,7 @@ class SimpleContainer extends Container implements IContainer { /** * @param ReflectionClass $class the class to instantiate - * @return stdClass the created class + * @return \stdClass the created class */ private function buildClass(ReflectionClass $class) { $constructor = $class->getConstructor(); @@ -74,7 +74,7 @@ class SimpleContainer extends Container implements IContainer { * If a parameter is not registered in the container try to instantiate it * by using reflection to find out how to build the class * @param string $name the class name to resolve - * @return stdClass + * @return \stdClass * @throws QueryException if the class could not be found or instantiated */ public function resolve($name) { diff --git a/lib/public/icontainer.php b/lib/public/icontainer.php index ffd1d16c97e..64d5a7d8c1a 100644 --- a/lib/public/icontainer.php +++ b/lib/public/icontainer.php @@ -31,6 +31,7 @@ namespace OCP; use Closure; +use OCP\AppFramework\QueryException; /** |