Skip to content

Commit 15e2163

Browse files
committed
minor #3065 PHP CS Fixer - apply const->var annotation conversion (keradus)
This PR was squashed before being merged into the 2.x branch. Discussion ---------- PHP CS Fixer - apply const->var annotation conversion | Q | A | ------------- | --- | Bug fix? | no | New feature? | no <!-- please update src/**/CHANGELOG.md files --> | Docs? | no <!-- required for new features --> | Issues | Fix CS <!-- prefix each issue number with "Fix #", no need to create an issue if none exist, explain below instead --> | License | MIT with love by PHP Coding Standards Fixer ref symfony/symfony#61557 (comment) cc `@GromNaN` Commits ------- e69da55 PHP CS Fixer - apply const->var annotation conversion
2 parents 9a41d81 + e69da55 commit 15e2163

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

src/Map/src/Distance/HaversineDistanceCalculator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
final class HaversineDistanceCalculator implements DistanceCalculatorInterface
2424
{
2525
/**
26-
* @const float The Earth's radius in meters.
26+
* @var float the Earth's radius in meters
2727
*/
2828
private const EARTH_RADIUS = 6371000.0;
2929

src/Map/src/Distance/SphericalCosineDistanceCalculator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
final class SphericalCosineDistanceCalculator implements DistanceCalculatorInterface
2424
{
2525
/**
26-
* @const float The Earth's radius in meters.
26+
* @var float the Earth's radius in meters
2727
*/
2828
private const EARTH_RADIUS = 6371000.0;
2929

src/Map/tests/Cluster/ClusteringPerformanceTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
class ClusteringPerformanceTest extends TestCase
2121
{
2222
/**
23-
* @const array<float>
23+
* @var array<float>
2424
*/
2525
private const ZOOMS = [
2626
2.0,
@@ -29,7 +29,7 @@ class ClusteringPerformanceTest extends TestCase
2929
];
3030

3131
/**
32-
* @const array<string>
32+
* @var array<string>
3333
*/
3434
private const ALGORITHMS = [
3535
GridClusteringAlgorithm::class,
@@ -53,7 +53,7 @@ public static function algorithmProvider(): iterable
5353
*
5454
* @dataProvider algorithmProvider
5555
*/
56-
public function testScenarioRegion50000(ClusteringAlgorithmInterface $algorithm, float $zoom): void
56+
public function testScenarioRegion50000(ClusteringAlgorithmInterface $algorithm, float $zoom)
5757
{
5858
$points = $this->generatePoints(50000, 48.8, 49, 2.2, 2.5);
5959

@@ -65,7 +65,7 @@ public function testScenarioRegion50000(ClusteringAlgorithmInterface $algorithm,
6565
*
6666
* @dataProvider algorithmProvider
6767
*/
68-
public function testScenarioCountry5000(ClusteringAlgorithmInterface $algorithm, float $zoom): void
68+
public function testScenarioCountry5000(ClusteringAlgorithmInterface $algorithm, float $zoom)
6969
{
7070
$points = $this->generatePoints(5000, 30, 60, -10, 35);
7171

@@ -77,7 +77,7 @@ public function testScenarioCountry5000(ClusteringAlgorithmInterface $algorithm,
7777
*
7878
* @dataProvider algorithmProvider
7979
*/
80-
public function testScenarioWorld100000(ClusteringAlgorithmInterface $algorithm, float $zoom): void
80+
public function testScenarioWorld100000(ClusteringAlgorithmInterface $algorithm, float $zoom)
8181
{
8282
$points = $this->generatePoints(100000, -90, 90, -180, 180);
8383

0 commit comments

Comments
 (0)