Skip to content

Commit 84dc6b8

Browse files
committed
Make code compatible with legacy php versions
1 parent ed0a91d commit 84dc6b8

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

src/Map/src/Cluster/GridClusteringAlgorithm.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
*
3131
* @author Simon André <[email protected]>
3232
*/
33-
final readonly class GridClusteringAlgorithm implements ClusteringAlgorithmInterface
33+
final class GridClusteringAlgorithm implements ClusteringAlgorithmInterface
3434
{
3535
/**
3636
* Clusters a set of points using a fixed grid resolution based on the zoom level.

src/Map/src/Cluster/MortonClusteringAlgorithm.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
*
3131
* @author Simon André <[email protected]>
3232
*/
33-
final readonly class MortonClusteringAlgorithm implements ClusteringAlgorithmInterface
33+
final class MortonClusteringAlgorithm implements ClusteringAlgorithmInterface
3434
{
3535
/**
3636
* @param Point[] $points

src/Map/tests/Cluster/ClusteringPerformanceTest.php

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,19 @@
1919

2020
class ClusteringPerformanceTest extends TestCase
2121
{
22-
private const array ZOOMS = [
22+
/**
23+
* @const array<float>
24+
*/
25+
private const ZOOMS = [
2326
2.0,
2427
5.0,
2528
8.0,
2629
];
2730

28-
private const array ALGORITHMS = [
31+
/**
32+
* @const array<string>
33+
*/
34+
private const ALGORITHMS = [
2935
GridClusteringAlgorithm::class,
3036
MortonClusteringAlgorithm::class,
3137
];

0 commit comments

Comments
 (0)