public static function InvalidTypeException($expectedType, $key, $value) {
        throw new InvalidTypeException($expectedType, $key, is_array($value) ? serialize($value) : $value);
    }
public static function InvalidTypeException($expectedType, $key, $value) {
        throw new InvalidTypeException($expectedType, $key, is_array($value) ? serialize($value) : $value);
    }
public static function InvalidTypeException ( $ expectedType , $ key , $ value ) { throw new InvalidTypeException ( $ expectedType , $ key , is_array ( $ value ) ? serialize ( $ value ) : $ value ) ; }
throws an invalid type exception

@param  string $expectedType
@param  string $key
@param  mixed  $value
@throws InvalidTypeException
throws an invalid type exception