We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4816c80 commit 83239fcCopy full SHA for 83239fc
EventListener/AddLinkHeaderListener.php
@@ -50,7 +50,7 @@ public function onKernelResponse(ResponseEvent $event)
50
/**
51
* {@inheritdoc}
52
*/
53
- public static function getSubscribedEvents()
+ public static function getSubscribedEvents(): array
54
{
55
return [KernelEvents::RESPONSE => 'onKernelResponse'];
56
}
HttpHeaderSerializer.php
@@ -26,10 +26,8 @@ final class HttpHeaderSerializer
26
* Builds the value of the "Link" HTTP header.
27
*
28
* @param LinkInterface[]|\Traversable $links
29
- *
30
- * @return string|null
31
32
- public function serialize(iterable $links)
+ public function serialize(iterable $links): ?string
33
34
$elements = [];
35
foreach ($links as $link) {
0 commit comments