Skip to content

Commit 606594b

Browse files
committed
Fix UXMapComponent types
1 parent 986bd57 commit 606594b

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/Map/src/Twig/UXMapComponent.php

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,22 @@
1111

1212
namespace Symfony\UX\Map\Twig;
1313

14+
use Symfony\UX\Map\Marker;
15+
use Symfony\UX\Map\Point;
16+
1417
/**
1518
* @author Simon André <smn.andre@gmail.com>
1619
*
1720
* @internal
1821
*/
1922
final class UXMapComponent
2023
{
21-
public int $zoom;
24+
public ?float $zoom;
2225

23-
public array $center;
26+
public ?Point $center;
2427

28+
/**
29+
* @var Marker[]
30+
*/
2531
public array $markers;
2632
}

0 commit comments

Comments
 (0)