From 7de6f980b373a42dc23bc8153f68b4c5f510fce1 Mon Sep 17 00:00:00 2001 From: dannylamb Date: Wed, 21 Oct 2020 15:28:22 -0300 Subject: [PATCH] Use continue 2 in switch inside for loop (for php 7.3) (#802) --- src/EventSubscriber/LinkHeaderSubscriber.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/EventSubscriber/LinkHeaderSubscriber.php b/src/EventSubscriber/LinkHeaderSubscriber.php index a25b506cc..8d22440e6 100644 --- a/src/EventSubscriber/LinkHeaderSubscriber.php +++ b/src/EventSubscriber/LinkHeaderSubscriber.php @@ -291,7 +291,7 @@ protected function generateRestLinks(EntityInterface $entity) { break; default: - continue; + continue 2; } // Skip route if the user doesn't have access.