public function isCircularReference(object $object): bool
    {
        $objectHashId = spl_object_hash($object);

        if (isset($this->circularReferenceHashTable[$objectHashId])) {
            return true;
        }

        $this->circularReferenceHashTable[$objectHashId] = true;

        return false;
    }
public function isCircularReference(object $object): bool
    {
        $objectHashId = spl_object_hash($object);

        if (isset($this->circularReferenceHashTable[$objectHashId])) {
            return true;
        }

        $this->circularReferenceHashTable[$objectHashId] = true;

        return false;
    }
public function isCircularReference ( object $ object ) : bool { $ objectHashId = spl_object_hash ( $ object ) ; if ( isset ( $ this -> circularReferenceHashTable [ $ objectHashId ] ) ) { return true ; } $ this -> circularReferenceHashTable [ $ objectHashId ] = true ; return false ; }
Checks if the input object indicates that we've hit a circular reference

@param object $object The object to check
@return bool True if the input object indicates a circular reference, otherwise false
Checks if the input object indicates that we ve hit a circular reference