Skip to content

Commit

Permalink
Merge pull request #4943 from dunglas/chore/merge-2.7
Browse files Browse the repository at this point in the history
Chore/merge 2.7
  • Loading branch information
soyuka authored Sep 14, 2022
2 parents ec8fc2d + 4ce9957 commit 205f59f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Symfony/EventListener/ReadListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public function onKernelRequest(RequestEvent $event): void
return;
}

if (!$operation || !($operation->canRead() ?? true) || !$attributes['receive'] || (!$operation->getUriVariables() && !$request->isMethodSafe())) {
if (!$attributes['receive'] || !$operation || !($operation->canRead() ?? true) || (!$operation->getUriVariables() && !$request->isMethodSafe())) {
return;
}

Expand Down

0 comments on commit 205f59f

Please sign in to comment.