src/LdapTools/Resolver/ParameterResolver.php
protected function checkForCircularDependency($parent, array $parentParameters)
    {
        foreach ($this->requirements as $attribute => $parameters) {
            if (in_array($parent, $parameters) && in_array($attribute, $parentParameters)) {
                throw new LogicException(sprintf(
                    'Circular parameter dependency detected. Parameters "%s" and "%s" depend on each other.',
                    $parent,
                    $attribute
                ));
            }
        }
    }
protected function checkForCircularDependency($parent, array $parentParameters)
    {
        foreach ($this->requirements as $attribute => $parameters) {
            if (in_array($parent, $parameters) && in_array($attribute, $parentParameters)) {
                throw new LogicException(sprintf(
                    'Circular parameter dependency detected. Parameters "%s" and "%s" depend on each other.',
                    $parent,
                    $attribute
                ));
            }
        }
    }
protected function checkForCircularDependency ( $ parent , array $ parentParameters ) { foreach ( $ this -> requirements as $ attribute => $ parameters ) { if ( in_array ( $ parent , $ parameters ) && in_array ( $ attribute , $ parentParameters ) ) { throw new LogicException ( sprintf ( 'Circular parameter dependency detected. Parameters "%s" and "%s" depend on each other.' , $ parent , $ attribute ) ) ; } } }
Given an attribute with parameter dependencies, check if any of them will become circular.

@param string $parent
@param array $parentParameters
Given an attribute with parameter dependencies check if any of them will become circular .