Skip to content

Commit 3ca3b42

Browse files
Replace HTTPlug factories by PSR-17 (#1184)
* Replace HTTPlug factories by PSR-17 * minor fix --------- Co-authored-by: Nyholm <tobias.nyholm@gmail.com>
1 parent 35fdf2c commit 3ca3b42

File tree

5 files changed

+5
-12
lines changed

5 files changed

+5
-12
lines changed

Model/Address.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -255,10 +255,6 @@ private static function createCountry($name, $code)
255255
}
256256

257257
/**
258-
* @param float $south
259-
* @param float $west
260-
* @param float $north
261-
*
262258
* @return Bounds|null
263259
*/
264260
private static function createBounds(?float $south, ?float $west, ?float $north, ?float $east)

Model/Country.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,6 @@ final class Country
3131
*/
3232
private $code;
3333

34-
/**
35-
* @param string $name
36-
* @param string $code
37-
*/
3834
public function __construct(string $name = null, string $code = null)
3935
{
4036
if (null === $name && null === $code) {

ProviderAggregator.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,6 @@ public function getProviders(): array
131131
*
132132
* @param GeocodeQuery|ReverseQuery $query
133133
* @param Provider[] $providers
134-
* @param Provider $currentProvider
135134
*
136135
* @throws ProviderNotRegistered
137136
*/

StatefulGeocoder.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,6 @@ final class StatefulGeocoder implements Geocoder
4242
*/
4343
private $provider;
4444

45-
/**
46-
* @param string $locale
47-
*/
4845
public function __construct(Provider $provider, string $locale = null)
4946
{
5047
$this->provider = $provider;

composer.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,10 @@
4343
"scripts": {
4444
"test": "vendor/bin/phpunit",
4545
"test-ci": "vendor/bin/phpunit --coverage-text --coverage-clover=build/coverage.xml"
46+
},
47+
"config": {
48+
"allow-plugins": {
49+
"php-http/discovery": false
50+
}
4651
}
4752
}

0 commit comments

Comments
 (0)