Skip to content

Commit 1080bbe

Browse files
committed
Changes from code review
1 parent 12c8017 commit 1080bbe

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

src/lib/Form/EventSubscriber/FixUrlProtocolListener.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@
1313
use Symfony\Component\Form\FormEvent;
1414
use Symfony\Component\Form\FormEvents;
1515

16-
class FixUrlProtocolListener implements EventSubscriberInterface
16+
/**
17+
* @internal
18+
*/
19+
final class FixUrlProtocolListener implements EventSubscriberInterface
1720
{
1821
/** @var string|null */
1922
private $defaultProtocol;
@@ -68,7 +71,7 @@ public function onSubmit(FormEvent $event): void
6871

6972
private function hasAuthority(string $protocol): bool
7073
{
71-
return !in_array($protocol, ['mailto', 'tel']);
74+
return !in_array($protocol, ['mailto', 'tel'], true);
7275
}
7376

7477
public static function getSubscribedEvents(): array

0 commit comments

Comments
 (0)