diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index d3fee8c..f7a93fb 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -17,6 +17,7 @@ jobs: - "7.4" - "8.0" - "8.1" + - "8.2" steps: - uses: actions/checkout@v2 diff --git a/src/Negotiation/AbstractNegotiator.php b/src/Negotiation/AbstractNegotiator.php index 79c7c9b..8048bd1 100644 --- a/src/Negotiation/AbstractNegotiator.php +++ b/src/Negotiation/AbstractNegotiator.php @@ -111,7 +111,7 @@ abstract protected function acceptFactory($header); * * @return AcceptMatch|null Headers matched */ - protected function match(AcceptHeader $header, AcceptHeader $priority, $index) + protected function matchHeader(AcceptHeader $header, AcceptHeader $priority, $index) { $ac = $header->getType(); $pc = $priority->getType(); @@ -154,7 +154,7 @@ private function findMatches(array $headerParts, array $priorities) $matches = []; foreach ($priorities as $index => $p) { foreach ($headerParts as $h) { - if (null !== $match = $this->match($h, $p, $index)) { + if (null !== $match = $this->matchHeader($h, $p, $index)) { $matches[] = $match; } } diff --git a/src/Negotiation/LanguageNegotiator.php b/src/Negotiation/LanguageNegotiator.php index ba33616..0337e7e 100644 --- a/src/Negotiation/LanguageNegotiator.php +++ b/src/Negotiation/LanguageNegotiator.php @@ -15,7 +15,7 @@ protected function acceptFactory($accept) /** * {@inheritdoc} */ - protected function match(AcceptHeader $acceptLanguage, AcceptHeader $priority, $index) + protected function matchHeader(AcceptHeader $acceptLanguage, AcceptHeader $priority, $index) { if (!$acceptLanguage instanceof AcceptLanguage || !$priority instanceof AcceptLanguage) { return null; diff --git a/src/Negotiation/Negotiator.php b/src/Negotiation/Negotiator.php index 9b98a2e..58110cd 100644 --- a/src/Negotiation/Negotiator.php +++ b/src/Negotiation/Negotiator.php @@ -15,7 +15,7 @@ protected function acceptFactory($accept) /** * {@inheritdoc} */ - protected function match(AcceptHeader $accept, AcceptHeader $priority, $index) + protected function matchHeader(AcceptHeader $accept, AcceptHeader $priority, $index) { if (!$accept instanceof Accept || !$priority instanceof Accept) { return null;