src/Viserio/Component/Container/Container.php
public function has($id)
    {
        if (! \is_string($id)) {
            throw new ContainerException(\sprintf(
                'The name parameter must be of type string, [%s] given.',
                \is_object($id) ? \get_class($id) : \gettype($id)
            ));
        }

        $abstract = $id;

        if (isset($this->bindings[$abstract])) {
            return true;
        }

        return $this->hasInDelegate($id);
    }
public function has($id)
    {
        if (! \is_string($id)) {
            throw new ContainerException(\sprintf(
                'The name parameter must be of type string, [%s] given.',
                \is_object($id) ? \get_class($id) : \gettype($id)
            ));
        }

        $abstract = $id;

        if (isset($this->bindings[$abstract])) {
            return true;
        }

        return $this->hasInDelegate($id);
    }
{@inheritdoc}