src/Viserio/Component/Container/Container.php
public function when(string $concrete): ContextualBindingBuilderContract
    {
        $this->abstract = $concrete;

        if (isset($this->bindings[$this->abstract])) {
            $this->concrete = $this->bindings[$this->abstract][TypesContract::VALUE];
        } elseif (\mb_strpos($this->abstract, '::')) {
            $this->concrete = \explode('::', $this->abstract, 2);
        } else {
            $this->concrete = $this->abstract;
        }

        return $this;
    }
public function when(string $concrete): ContextualBindingBuilderContract
    {
        $this->abstract = $concrete;

        if (isset($this->bindings[$this->abstract])) {
            $this->concrete = $this->bindings[$this->abstract][TypesContract::VALUE];
        } elseif (\mb_strpos($this->abstract, '::')) {
            $this->concrete = \explode('::', $this->abstract, 2);
        } else {
            $this->concrete = $this->abstract;
        }

        return $this;
    }
{@inheritdoc}