Skip to content

Commit 35776cd

Browse files
committed
[WebLink] Add types to private properties
Signed-off-by: Alexander M. Turek <[email protected]>
1 parent fcf4717 commit 35776cd

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

EventListener/AddLinkHeaderListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class_exists(HttpHeaderSerializer::class);
2929
*/
3030
class AddLinkHeaderListener implements EventSubscriberInterface
3131
{
32-
private $serializer;
32+
private HttpHeaderSerializer $serializer;
3333

3434
public function __construct()
3535
{

GenericLinkProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class GenericLinkProvider implements EvolvableLinkProviderInterface
1919
/**
2020
* @var LinkInterface[]
2121
*/
22-
private $links = [];
22+
private array $links = [];
2323

2424
/**
2525
* @param LinkInterface[] $links

Link.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,17 +38,17 @@ class Link implements EvolvableLinkInterface
3838
// Extra relations
3939
public const REL_MERCURE = 'mercure';
4040

41-
private $href = '';
41+
private string $href = '';
4242

4343
/**
4444
* @var string[]
4545
*/
46-
private $rel = [];
46+
private array $rel = [];
4747

4848
/**
4949
* @var array<string, string|bool|string[]>
5050
*/
51-
private $attributes = [];
51+
private array $attributes = [];
5252

5353
public function __construct(string $rel = null, string $href = '')
5454
{

0 commit comments

Comments
 (0)