src/mako/syringe/Container.php
protected function getDeclaringFunction(ReflectionParameter $parameter): string
	{
		$declaringFunction = $parameter->getDeclaringFunction();

		if($declaringFunction->isClosure())
		{
			return 'Closure';
		}

		if(($class = $parameter->getDeclaringClass()) === null)
		{
			return $declaringFunction->getName();
		}

		return $class->getName() . '::' . $declaringFunction->getName();
	}
protected function getDeclaringFunction(ReflectionParameter $parameter): string
	{
		$declaringFunction = $parameter->getDeclaringFunction();

		if($declaringFunction->isClosure())
		{
			return 'Closure';
		}

		if(($class = $parameter->getDeclaringClass()) === null)
		{
			return $declaringFunction->getName();
		}

		return $class->getName() . '::' . $declaringFunction->getName();
	}
protected function getDeclaringFunction ( ReflectionParameter $ parameter ) : string { $ declaringFunction = $ parameter -> getDeclaringFunction ( ) ; if ( $ declaringFunction -> isClosure ( ) ) { return 'Closure' ; } if ( ( $ class = $ parameter -> getDeclaringClass ( ) ) === null ) { return $ declaringFunction -> getName ( ) ; } return $ class -> getName ( ) . '::' . $ declaringFunction -> getName ( ) ; }
Returns the name of the declaring function.

@param  \ReflectionParameter $parameter ReflectionParameter instance
@return string
Returns the name of the declaring function .