Skip to content

Commit

Permalink
Replace HTTPlug factories by PSR-17 (#1184)
Browse files Browse the repository at this point in the history
* Replace HTTPlug factories by PSR-17

* minor fix

---------

Co-authored-by: Nyholm <tobias.nyholm@gmail.com>
  • Loading branch information
nicolas-grekas and Nyholm authored Dec 15, 2023
1 parent 35fdf2c commit 3ca3b42
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 12 deletions.
4 changes: 0 additions & 4 deletions Model/Address.php
Original file line number Diff line number Diff line change
Expand Up @@ -255,10 +255,6 @@ private static function createCountry($name, $code)
}

/**
* @param float $south
* @param float $west
* @param float $north
*
* @return Bounds|null
*/
private static function createBounds(?float $south, ?float $west, ?float $north, ?float $east)
Expand Down
4 changes: 0 additions & 4 deletions Model/Country.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,6 @@ final class Country
*/
private $code;

/**
* @param string $name
* @param string $code
*/
public function __construct(string $name = null, string $code = null)
{
if (null === $name && null === $code) {
Expand Down
1 change: 0 additions & 1 deletion ProviderAggregator.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,6 @@ public function getProviders(): array
*
* @param GeocodeQuery|ReverseQuery $query
* @param Provider[] $providers
* @param Provider $currentProvider
*
* @throws ProviderNotRegistered
*/
Expand Down
3 changes: 0 additions & 3 deletions StatefulGeocoder.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,6 @@ final class StatefulGeocoder implements Geocoder
*/
private $provider;

/**
* @param string $locale
*/
public function __construct(Provider $provider, string $locale = null)
{
$this->provider = $provider;
Expand Down
5 changes: 5 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,10 @@
"scripts": {
"test": "vendor/bin/phpunit",
"test-ci": "vendor/bin/phpunit --coverage-text --coverage-clover=build/coverage.xml"
},
"config": {
"allow-plugins": {
"php-http/discovery": false
}
}
}

0 comments on commit 3ca3b42

Please sign in to comment.