Skip to content
Snippets Groups Projects
Commit be06937e authored by Lukas Reschke's avatar Lukas Reschke
Browse files

Use mixed as type

Actually query() returns value of the type "mixed" (as is also stated in the interface) - this is purely there to make our IDEs and Scrutinizer happier.
parent 31e489b4
No related branches found
No related tags found
No related merge requests found
......@@ -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 {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment