public static function getInvalidArgumentException($argument, $type)
    {
        $stack = debug_backtrace(false);

        return new InvalidArgumentException(
          sprintf(
            'Argument #%d of %s::%s() is no %s',
            $argument,
            $stack[1]['class'],
            $stack[1]['function'],
            $type
          )
        );
    }
public static function getInvalidArgumentException($argument, $type)
    {
        $stack = debug_backtrace(false);

        return new InvalidArgumentException(
          sprintf(
            'Argument #%d of %s::%s() is no %s',
            $argument,
            $stack[1]['class'],
            $stack[1]['function'],
            $type
          )
        );
    }
public static function getInvalidArgumentException ( $ argument , $ type ) { $ stack = debug_backtrace ( false ) ; return new InvalidArgumentException ( sprintf ( 'Argument #%d of %s::%s() is no %s' , $ argument , $ stack [ 1 ] [ 'class' ] , $ stack [ 1 ] [ 'function' ] , $ type ) ) ; }
Only used internally.

@param int    $argument
@param string $type

@return InvalidArgumentException
Only used internally .