generator/src/Method.php
public function isOverloaded(): bool
    {
        foreach ($this->getParams() as $parameter) {
            if ($parameter->isOptionalWithNoDefault() && !$parameter->isByReference()) {
                return true;
            }
        }
        return false;
    }
public function isOverloaded(): bool
    {
        foreach ($this->getParams() as $parameter) {
            if ($parameter->isOptionalWithNoDefault() && !$parameter->isByReference()) {
                return true;
            }
        }
        return false;
    }
public function isOverloaded ( ) : bool { foreach ( $ this -> getParams ( ) as $ parameter ) { if ( $ parameter -> isOptionalWithNoDefault ( ) && ! $ parameter -> isByReference ( ) ) { return true ; } } return false ; }
The function is overloaded if at least one parameter is optional with no default value and this parameter is not by reference.

@return bool
The function is overloaded if at least one parameter is optional with no default value and this parameter is not by reference .