summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2014-10-22 18:13:31 +0200
committerLukas Reschke <lukas@owncloud.com>2014-10-22 18:13:31 +0200
commite9ec45ddd1c965523f3e232a9cb0ad438750ddec (patch)
tree035709b85b9f4669ac5e8ec8d7e5da2f7a782463 /lib
parent44a7a3690a161317daea756a37219093b96f020e (diff)
parentbe06937e65495293a97a1d8ada36d7d8f87cfe44 (diff)
downloadnextcloud-server-e9ec45ddd1c965523f3e232a9cb0ad438750ddec.tar.gz
nextcloud-server-e9ec45ddd1c965523f3e232a9cb0ad438750ddec.zip
Merge pull request #11704 from owncloud/fix-type-for-query
Use mixed as type
Diffstat (limited to 'lib')
-rw-r--r--lib/private/appframework/utility/simplecontainer.php13
1 files changed, 8 insertions, 5 deletions
diff --git a/lib/private/appframework/utility/simplecontainer.php b/lib/private/appframework/utility/simplecontainer.php
index 1ad06b9ab23..a2d90138dfa 100644
--- a/lib/private/appframework/utility/simplecontainer.php
+++ b/lib/private/appframework/utility/simplecontainer.php
@@ -11,14 +11,17 @@ class SimpleContainer extends \Pimple implements \OCP\IContainer {
/**
* @param string $name name of the service to query for
- * @return object registered service for the given $name
+ * @return mixed registered service for the given $name
*/
public function query($name) {
return $this->offsetGet($name);
}
- function registerParameter($name, $value)
- {
+ /**
+ * @param string $name
+ * @param mixed $value
+ */
+ function registerParameter($name, $value) {
$this[$name] = $value;
}
@@ -29,9 +32,9 @@ class SimpleContainer extends \Pimple implements \OCP\IContainer {
*
* @param string $name name of the service to register another backend for
* @param \Closure $closure the closure to be called on service creation
+ * @param bool $shared
*/
- function registerService($name, \Closure $closure, $shared = true)
- {
+ function registerService($name, \Closure $closure, $shared = true) {
if ($shared) {
$this[$name] = \Pimple::share($closure);
} else {