src/Viserio/Component/Routing/Matcher/AbstractMatcher.php
public function mergeParameterKeys(SegmentMatcherContract $matcher): void
    {
        if ($matcher->getHash() !== $this->getHash()) {
            throw new InvalidArgumentException(
                \sprintf(
                    'Cannot merge parameters: Matcher\'s must be equivalent, [%s] expected, [%s] given.',
                    $matcher->getHash(),
                    $this->getHash()
                )
            );
        }

        $this->parameterKeys = \array_unique(
            \array_merge($this->parameterKeys, $matcher->getParameterKeys()),
            \SORT_NUMERIC
        );
    }
public function mergeParameterKeys(SegmentMatcherContract $matcher): void
    {
        if ($matcher->getHash() !== $this->getHash()) {
            throw new InvalidArgumentException(
                \sprintf(
                    'Cannot merge parameters: Matcher\'s must be equivalent, [%s] expected, [%s] given.',
                    $matcher->getHash(),
                    $this->getHash()
                )
            );
        }

        $this->parameterKeys = \array_unique(
            \array_merge($this->parameterKeys, $matcher->getParameterKeys()),
            \SORT_NUMERIC
        );
    }
{@inheritdoc}

@throws \Viserio\Component\Contract\Routing\Exception\InvalidArgumentException