src/ClientResolver.php
private function invalidType($name, $provided)
    {
        $expected = implode('|', $this->argDefinitions[$name]['valid']);
        $msg = "Invalid configuration value "
            . "provided for \"{$name}\". Expected {$expected}, but got "
            . describe_type($provided) . "\n\n"
            . $this->getArgMessage($name);
        throw new IAE($msg);
    }
private function invalidType($name, $provided)
    {
        $expected = implode('|', $this->argDefinitions[$name]['valid']);
        $msg = "Invalid configuration value "
            . "provided for \"{$name}\". Expected {$expected}, but got "
            . describe_type($provided) . "\n\n"
            . $this->getArgMessage($name);
        throw new IAE($msg);
    }
private function invalidType ( $ name , $ provided ) { $ expected = implode ( '|' , $ this -> argDefinitions [ $ name ] [ 'valid' ] ) ; $ msg = "Invalid configuration value " . "provided for \"{$name}\". Expected {$expected}, but got " . describe_type ( $ provided ) . "\n\n" . $ this -> getArgMessage ( $ name ) ; throw new IAE ( $ msg ) ; }
Throw when an invalid type is encountered.

@param string $name     Name of the value being validated.
@param mixed  $provided The provided value.
@throws \InvalidArgumentException
Throw when an invalid type is encountered .