Skip to content

Commit 83239fc

Browse files
author
dFayet
committed
Replace @return annotation by return type in final classes
1 parent 4816c80 commit 83239fc

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

EventListener/AddLinkHeaderListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public function onKernelResponse(ResponseEvent $event)
5050
/**
5151
* {@inheritdoc}
5252
*/
53-
public static function getSubscribedEvents()
53+
public static function getSubscribedEvents(): array
5454
{
5555
return [KernelEvents::RESPONSE => 'onKernelResponse'];
5656
}

HttpHeaderSerializer.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,8 @@ final class HttpHeaderSerializer
2626
* Builds the value of the "Link" HTTP header.
2727
*
2828
* @param LinkInterface[]|\Traversable $links
29-
*
30-
* @return string|null
3129
*/
32-
public function serialize(iterable $links)
30+
public function serialize(iterable $links): ?string
3331
{
3432
$elements = [];
3533
foreach ($links as $link) {

0 commit comments

Comments
 (0)