Skip to content

Commit

Permalink
dropped php7.4 support
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeptchr committed Feb 24, 2022
1 parent 05aa54a commit 657e893
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
}
],
"require": {
"php": "^7.4|^8.0|^8.1",
"php": "^8.0|^8.1",
"guzzlehttp/guzzle": "^7.0.1",
"ext-json": "*"
},
Expand Down
10 changes: 2 additions & 8 deletions src/Pro6pp.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,6 @@

class Pro6pp
{
/**
* @var string
*/
private string $apiKey;

/**
* @var Client
*/
Expand All @@ -32,9 +27,8 @@ class Pro6pp
* Pro6pp constructor.
* @param string $apiKey
*/
public function __construct(string $apiKey)
public function __construct(private string $apiKey)
{
$this->apiKey = $apiKey;
$this->guzzle = new Client();
}

Expand Down Expand Up @@ -209,7 +203,7 @@ public function suggestCitiesByName(string $countryCode, string $cityName, int $
* @param float $lon2
* @return float|int
*/
public function distanceBetweenInKilometers(float $lat1, float $lon1, float $lat2, float $lon2)
public function distanceBetweenInKilometers(float $lat1, float $lon1, float $lat2, float $lon2): float|int
{
$pi80 = M_PI / 180;

Expand Down

0 comments on commit 657e893

Please sign in to comment.