src/ReflectionParameter.php
protected function haveSiblingsDefalutValues()
    {
        $function = $this->getDeclaringFunction();
        if (null === $function) {
            throw new ReflectionException('Could not get the declaring function reflection.');
        }

        /** @var \ReflectionParameter[] $remainingParameters */
        $remainingParameters = array_slice($function->getParameters(), $this->parameterIndex + 1);
        foreach ($remainingParameters as $reflectionParameter) {
            if (!$reflectionParameter->isDefaultValueAvailable()) {
                return false;
            }
        }

        return true;
    }
protected function haveSiblingsDefalutValues()
    {
        $function = $this->getDeclaringFunction();
        if (null === $function) {
            throw new ReflectionException('Could not get the declaring function reflection.');
        }

        /** @var \ReflectionParameter[] $remainingParameters */
        $remainingParameters = array_slice($function->getParameters(), $this->parameterIndex + 1);
        foreach ($remainingParameters as $reflectionParameter) {
            if (!$reflectionParameter->isDefaultValueAvailable()) {
                return false;
            }
        }

        return true;
    }
protected function haveSiblingsDefalutValues ( ) { $ function = $ this -> getDeclaringFunction ( ) ; if ( null === $ function ) { throw new ReflectionException ( 'Could not get the declaring function reflection.' ) ; } /** @var \ReflectionParameter[] $remainingParameters */ $ remainingParameters = array_slice ( $ function -> getParameters ( ) , $ this -> parameterIndex + 1 ) ; foreach ( $ remainingParameters as $ reflectionParameter ) { if ( ! $ reflectionParameter -> isDefaultValueAvailable ( ) ) { return false ; } } return true ; }
Returns if all following parameters have a default value definition.

@return bool
@throws ReflectionException If could not fetch declaring function reflection
Returns if all following parameters have a default value definition .