From ee75f9f59491cf7498cbe787694605d963b3dfc9 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Wed, 23 Sep 2015 10:13:41 +0200 Subject: [PATCH] Fix type hint errors in the container and the interface --- lib/private/appframework/utility/simplecontainer.php | 4 ++-- 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 5d7ea48752..3de6d9ba5b 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 ffd1d16c97..64d5a7d8c1 100644 --- a/lib/public/icontainer.php +++ b/lib/public/icontainer.php @@ -31,6 +31,7 @@ namespace OCP; use Closure; +use OCP\AppFramework\QueryException; /**