Skip to content

Commit

Permalink
Merge pull request #67 from acelaya-forks/feature/phpstan-2
Browse files Browse the repository at this point in the history
Update to PHPStan 2.0
  • Loading branch information
acelaya authored Nov 12, 2024
2 parents fadae5d + 859912a commit 3f6e422
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com), and this
### Changed
* Update shlinkio coding standard to v2.4
* Add default values to `Location` constructor params, making it easier to handle with named parameters.
* Update to PHPStan 2.0

### Deprecated
* *Nothing*
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
},
"require-dev": {
"devster/ubench": "^2.1",
"phpstan/phpstan": "^1.12",
"phpstan/phpstan-phpunit": "^1.4",
"phpstan/phpstan": "^2.0",
"phpstan/phpstan-phpunit": "^2.0",
"phpunit/phpunit": "^11.4",
"roave/security-advisories": "dev-master",
"shlinkio/php-coding-standard": "~2.4.0",
Expand Down
2 changes: 1 addition & 1 deletion src/Resolver/GeoLite2LocationResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ private function mapFields(City $city): Model\Location
return new Model\Location(
$city->country->isoCode ?? '',
$city->country->name ?? '',
$city->subdivisions[0]?->name ?? '',
$city->subdivisions[0]->name ?? '',
$city->city->name ?? '',
(float) ($city->location->latitude ?? 0.0),
(float) ($city->location->longitude ?? 0.0),
Expand Down

0 comments on commit 3f6e422

Please sign in to comment.