diff --git a/CHANGELOG.md b/CHANGELOG.md index a3258d6f..f92852cd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,7 @@ CHANGELOG ========= -3.5.0 +3.5.0 (2026-11-17) ------------------ * The `GeoIp2\Database\Reader` lookup methods now declare the @@ -13,6 +13,26 @@ CHANGELOG and `InvalidDatabaseException` from `metadata()` with the C extension. `metadata()` no longer declares `InvalidArgumentException`, which it cannot throw. +* The minimum version of `maxmind-db/reader` is now 1.15.0, and the minimum + version of `maxmind/web-service-common` is now 0.12.0. `geoip2.phar` bundles + these versions or later. The 3.4.0 phar bundled `maxmind-db/reader` 1.13.1, + which lacks the decoder limits for crafted databases (GHSA-hj94-g986-h9r7). + See the release notes for + [maxmind-db/reader 1.15.0](https://github.com/maxmind/MaxMind-DB-Reader-php/releases/tag/v1.15.0) + and + [maxmind/web-service-common 0.12.0](https://github.com/maxmind/web-service-common-php/releases/tag/v0.12.0). +* Most concrete classes that no other class extends are now marked `@final`. + They will be `final` in the next major version. Static analyzers such as + PHPStan report a class that extends them. These classes stay open: + * `GeoIp2\Exception\GeoIp2Exception`, `GeoIp2\Exception\HttpException`, + `GeoIp2\Model\AnonymousIp`, `GeoIp2\Model\City`, `GeoIp2\Model\Country`, + and `GeoIp2\Record\Country`, because other classes in this package extend + them. + * `GeoIp2\Record\Location`, because the minFraud PHP API extends it. + * `GeoIp2\Database\Reader`, `GeoIp2\Model\Asn`, + `GeoIp2\Model\ConnectionType`, `GeoIp2\Model\Domain`, + `GeoIp2\Model\Isp`, and `GeoIp2\Record\Traits`, until the next major + version. 3.4.0 (2026-07-16) ------------------ diff --git a/README.md b/README.md index 31b77a23..85235bc2 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ You should now have the file `composer.phar` in your project directory. Run in your project root: ```sh -php composer.phar require geoip2/geoip2:^3.4.0 +php composer.phar require geoip2/geoip2:^3.5.0 ``` You should now have the files `composer.json` and `composer.lock` as well as diff --git a/composer.json b/composer.json index 322c407c..83511a65 100644 --- a/composer.json +++ b/composer.json @@ -13,8 +13,8 @@ } ], "require": { - "maxmind-db/reader": "^1.13.0", - "maxmind/web-service-common": "~0.11", + "maxmind-db/reader": "^1.15.0", + "maxmind/web-service-common": "~0.12", "php": ">=8.1", "ext-json": "*" }, diff --git a/mise.lock b/mise.lock index 746761ce..a0baad1b 100644 --- a/mise.lock +++ b/mise.lock @@ -1,88 +1,94 @@ # @generated - this file is auto-generated by `mise lock` https://mise.jdx.dev/dev-tools/mise-lock.html [[tools."github:box-project/box"]] -version = "4.7.0" +version = "4.7.1" backend = "github:box-project/box" [tools."github:box-project/box"."platforms.linux-arm64"] -checksum = "sha256:3d390eeaec33288098fe83f8a54c60cc575cb6be295f38ff4482b4b4f26f8d52" -url = "https://github.com/box-project/box/releases/download/4.7.0/box.phar" -url_api = "https://api.github.com/repos/box-project/box/releases/assets/376333812" +checksum = "sha256:aedabb38bad96a90868603f118956c3faa662b545c06be66df1b145aba703c0a" +checksum_source = "mise-versions" +url = "https://github.com/box-project/box/releases/download/4.7.1/box.phar" +url_api = "https://api.github.com/repos/box-project/box/releases/assets/681185755" [tools."github:box-project/box"."platforms.linux-arm64-musl"] -checksum = "sha256:3d390eeaec33288098fe83f8a54c60cc575cb6be295f38ff4482b4b4f26f8d52" -url = "https://github.com/box-project/box/releases/download/4.7.0/box.phar" -url_api = "https://api.github.com/repos/box-project/box/releases/assets/376333812" +checksum = "sha256:aedabb38bad96a90868603f118956c3faa662b545c06be66df1b145aba703c0a" +checksum_source = "mise-versions" +url = "https://github.com/box-project/box/releases/download/4.7.1/box.phar" +url_api = "https://api.github.com/repos/box-project/box/releases/assets/681185755" [tools."github:box-project/box"."platforms.linux-x64"] -checksum = "sha256:3d390eeaec33288098fe83f8a54c60cc575cb6be295f38ff4482b4b4f26f8d52" -url = "https://github.com/box-project/box/releases/download/4.7.0/box.phar" -url_api = "https://api.github.com/repos/box-project/box/releases/assets/376333812" +checksum = "sha256:aedabb38bad96a90868603f118956c3faa662b545c06be66df1b145aba703c0a" +url = "https://github.com/box-project/box/releases/download/4.7.1/box.phar" +url_api = "https://api.github.com/repos/box-project/box/releases/assets/681185755" [tools."github:box-project/box"."platforms.linux-x64-musl"] -checksum = "sha256:3d390eeaec33288098fe83f8a54c60cc575cb6be295f38ff4482b4b4f26f8d52" -url = "https://github.com/box-project/box/releases/download/4.7.0/box.phar" -url_api = "https://api.github.com/repos/box-project/box/releases/assets/376333812" +checksum = "sha256:aedabb38bad96a90868603f118956c3faa662b545c06be66df1b145aba703c0a" +checksum_source = "mise-versions" +url = "https://github.com/box-project/box/releases/download/4.7.1/box.phar" +url_api = "https://api.github.com/repos/box-project/box/releases/assets/681185755" [tools."github:box-project/box"."platforms.macos-arm64"] -checksum = "sha256:3d390eeaec33288098fe83f8a54c60cc575cb6be295f38ff4482b4b4f26f8d52" -url = "https://github.com/box-project/box/releases/download/4.7.0/box.phar" -url_api = "https://api.github.com/repos/box-project/box/releases/assets/376333812" +checksum = "sha256:aedabb38bad96a90868603f118956c3faa662b545c06be66df1b145aba703c0a" +checksum_source = "mise-versions" +url = "https://github.com/box-project/box/releases/download/4.7.1/box.phar" +url_api = "https://api.github.com/repos/box-project/box/releases/assets/681185755" [tools."github:box-project/box"."platforms.macos-x64"] -checksum = "sha256:3d390eeaec33288098fe83f8a54c60cc575cb6be295f38ff4482b4b4f26f8d52" -url = "https://github.com/box-project/box/releases/download/4.7.0/box.phar" -url_api = "https://api.github.com/repos/box-project/box/releases/assets/376333812" +checksum = "sha256:aedabb38bad96a90868603f118956c3faa662b545c06be66df1b145aba703c0a" +checksum_source = "mise-versions" +url = "https://github.com/box-project/box/releases/download/4.7.1/box.phar" +url_api = "https://api.github.com/repos/box-project/box/releases/assets/681185755" [tools."github:box-project/box"."platforms.windows-x64"] -checksum = "sha256:3d390eeaec33288098fe83f8a54c60cc575cb6be295f38ff4482b4b4f26f8d52" -url = "https://github.com/box-project/box/releases/download/4.7.0/box.phar" -url_api = "https://api.github.com/repos/box-project/box/releases/assets/376333812" +checksum = "sha256:aedabb38bad96a90868603f118956c3faa662b545c06be66df1b145aba703c0a" +checksum_source = "mise-versions" +url = "https://github.com/box-project/box/releases/download/4.7.1/box.phar" +url_api = "https://api.github.com/repos/box-project/box/releases/assets/681185755" [[tools."github:composer/composer"]] -version = "2.10.2" +version = "2.11.2" backend = "github:composer/composer" [tools."github:composer/composer"."platforms.linux-arm64"] -checksum = "sha256:5ee7125f8a30a34d246cefdc0bc85b8a783b28f2aec968994118512350d28027" -url = "https://github.com/composer/composer/releases/download/2.10.2/composer.phar" -url_api = "https://api.github.com/repos/composer/composer/releases/assets/463051343" +checksum = "sha256:dd158c0afd41d15fac89e1b4e47b5d42911fe316c3687cd5edac98319b25d028" +url = "https://github.com/composer/composer/releases/download/2.11.2/composer.phar" +url_api = "https://api.github.com/repos/composer/composer/releases/assets/730809739" provenance = "github-attestations" [tools."github:composer/composer"."platforms.linux-arm64-musl"] -checksum = "sha256:5ee7125f8a30a34d246cefdc0bc85b8a783b28f2aec968994118512350d28027" -url = "https://github.com/composer/composer/releases/download/2.10.2/composer.phar" -url_api = "https://api.github.com/repos/composer/composer/releases/assets/463051343" +checksum = "sha256:dd158c0afd41d15fac89e1b4e47b5d42911fe316c3687cd5edac98319b25d028" +url = "https://github.com/composer/composer/releases/download/2.11.2/composer.phar" +url_api = "https://api.github.com/repos/composer/composer/releases/assets/730809739" provenance = "github-attestations" [tools."github:composer/composer"."platforms.linux-x64"] -checksum = "sha256:5ee7125f8a30a34d246cefdc0bc85b8a783b28f2aec968994118512350d28027" -url = "https://github.com/composer/composer/releases/download/2.10.2/composer.phar" -url_api = "https://api.github.com/repos/composer/composer/releases/assets/463051343" +checksum = "sha256:dd158c0afd41d15fac89e1b4e47b5d42911fe316c3687cd5edac98319b25d028" +url = "https://github.com/composer/composer/releases/download/2.11.2/composer.phar" +url_api = "https://api.github.com/repos/composer/composer/releases/assets/730809739" provenance = "github-attestations" [tools."github:composer/composer"."platforms.linux-x64-musl"] -checksum = "sha256:5ee7125f8a30a34d246cefdc0bc85b8a783b28f2aec968994118512350d28027" -url = "https://github.com/composer/composer/releases/download/2.10.2/composer.phar" -url_api = "https://api.github.com/repos/composer/composer/releases/assets/463051343" +checksum = "sha256:dd158c0afd41d15fac89e1b4e47b5d42911fe316c3687cd5edac98319b25d028" +url = "https://github.com/composer/composer/releases/download/2.11.2/composer.phar" +url_api = "https://api.github.com/repos/composer/composer/releases/assets/730809739" provenance = "github-attestations" [tools."github:composer/composer"."platforms.macos-arm64"] -checksum = "sha256:5ee7125f8a30a34d246cefdc0bc85b8a783b28f2aec968994118512350d28027" -url = "https://github.com/composer/composer/releases/download/2.10.2/composer.phar" -url_api = "https://api.github.com/repos/composer/composer/releases/assets/463051343" +checksum = "sha256:dd158c0afd41d15fac89e1b4e47b5d42911fe316c3687cd5edac98319b25d028" +url = "https://github.com/composer/composer/releases/download/2.11.2/composer.phar" +url_api = "https://api.github.com/repos/composer/composer/releases/assets/730809739" provenance = "github-attestations" [tools."github:composer/composer"."platforms.macos-x64"] -checksum = "sha256:5ee7125f8a30a34d246cefdc0bc85b8a783b28f2aec968994118512350d28027" -url = "https://github.com/composer/composer/releases/download/2.10.2/composer.phar" -url_api = "https://api.github.com/repos/composer/composer/releases/assets/463051343" +checksum = "sha256:dd158c0afd41d15fac89e1b4e47b5d42911fe316c3687cd5edac98319b25d028" +url = "https://github.com/composer/composer/releases/download/2.11.2/composer.phar" +url_api = "https://api.github.com/repos/composer/composer/releases/assets/730809739" provenance = "github-attestations" [tools."github:composer/composer"."platforms.windows-x64"] -checksum = "sha256:5ee7125f8a30a34d246cefdc0bc85b8a783b28f2aec968994118512350d28027" -url = "https://github.com/composer/composer/releases/download/2.10.2/composer.phar" -url_api = "https://api.github.com/repos/composer/composer/releases/assets/463051343" +checksum = "sha256:dd158c0afd41d15fac89e1b4e47b5d42911fe316c3687cd5edac98319b25d028" +url = "https://github.com/composer/composer/releases/download/2.11.2/composer.phar" +url_api = "https://api.github.com/repos/composer/composer/releases/assets/730809739" provenance = "github-attestations" [[tools."github:phpDocumentor/phpDocumentor"]] @@ -125,43 +131,50 @@ url = "https://github.com/phpDocumentor/phpDocumentor/releases/download/v3.10.0/ url_api = "https://api.github.com/repos/phpDocumentor/phpDocumentor/releases/assets/419563924" [[tools.hugo]] -version = "0.164.0" +version = "0.170.0" backend = "aqua:gohugoio/hugo" [tools.hugo."platforms.linux-arm64"] -checksum = "sha256:948ee5f0ed30175f31937d592d63a2712f0761a69f1cbe812f780eb918a08b8e" -url = "https://github.com/gohugoio/hugo/releases/download/v0.164.0/hugo_0.164.0_linux-arm64.tar.gz" -url_api = "https://api.github.com/repos/gohugoio/hugo/releases/assets/468320173" +checksum = "sha256:4ec3acd12ac17dbffb34fa453d3630dc0926a2314c8cd4964a550cfa9a4dbc73" +checksum_source = "mise-versions" +url = "https://github.com/gohugoio/hugo/releases/download/v0.170.0/hugo_0.170.0_linux-arm64.tar.gz" +url_api = "https://api.github.com/repos/gohugoio/hugo/releases/assets/744015900" [tools.hugo."platforms.linux-arm64-musl"] -checksum = "sha256:948ee5f0ed30175f31937d592d63a2712f0761a69f1cbe812f780eb918a08b8e" -url = "https://github.com/gohugoio/hugo/releases/download/v0.164.0/hugo_0.164.0_linux-arm64.tar.gz" -url_api = "https://api.github.com/repos/gohugoio/hugo/releases/assets/468320173" +checksum = "sha256:4ec3acd12ac17dbffb34fa453d3630dc0926a2314c8cd4964a550cfa9a4dbc73" +checksum_source = "mise-versions" +url = "https://github.com/gohugoio/hugo/releases/download/v0.170.0/hugo_0.170.0_linux-arm64.tar.gz" +url_api = "https://api.github.com/repos/gohugoio/hugo/releases/assets/744015900" [tools.hugo."platforms.linux-x64"] -checksum = "sha256:d9c8b17285ea4ec004d9f814273ea910f2051ce02c284993fd1f91ba455ae50d" -url = "https://github.com/gohugoio/hugo/releases/download/v0.164.0/hugo_0.164.0_linux-amd64.tar.gz" -url_api = "https://api.github.com/repos/gohugoio/hugo/releases/assets/468320170" +checksum = "sha256:0930754ec22ad2dd1a252f8c31a5e57faccc9d15f1c3d381ddafcb96eeb8aef0" +checksum_source = "mise-versions" +url = "https://github.com/gohugoio/hugo/releases/download/v0.170.0/hugo_0.170.0_linux-amd64.tar.gz" +url_api = "https://api.github.com/repos/gohugoio/hugo/releases/assets/744015902" [tools.hugo."platforms.linux-x64-musl"] -checksum = "sha256:d9c8b17285ea4ec004d9f814273ea910f2051ce02c284993fd1f91ba455ae50d" -url = "https://github.com/gohugoio/hugo/releases/download/v0.164.0/hugo_0.164.0_linux-amd64.tar.gz" -url_api = "https://api.github.com/repos/gohugoio/hugo/releases/assets/468320170" +checksum = "sha256:0930754ec22ad2dd1a252f8c31a5e57faccc9d15f1c3d381ddafcb96eeb8aef0" +checksum_source = "mise-versions" +url = "https://github.com/gohugoio/hugo/releases/download/v0.170.0/hugo_0.170.0_linux-amd64.tar.gz" +url_api = "https://api.github.com/repos/gohugoio/hugo/releases/assets/744015902" [tools.hugo."platforms.macos-arm64"] -checksum = "sha256:c994e2cc6946838bb76521039509a7ce71282827e7035e344b6c225a83a5d0d3" -url = "https://github.com/gohugoio/hugo/releases/download/v0.164.0/hugo_0.164.0_darwin-universal.pkg" -url_api = "https://api.github.com/repos/gohugoio/hugo/releases/assets/468320272" +checksum = "sha256:b9dfc437df19dfd44720caf2e0ba7f9ca5c2e61164f2f4c53456f74d6fa28d22" +checksum_source = "mise-versions" +url = "https://github.com/gohugoio/hugo/releases/download/v0.170.0/hugo_0.170.0_darwin-universal.pkg" +url_api = "https://api.github.com/repos/gohugoio/hugo/releases/assets/744016098" [tools.hugo."platforms.macos-x64"] -checksum = "sha256:c994e2cc6946838bb76521039509a7ce71282827e7035e344b6c225a83a5d0d3" -url = "https://github.com/gohugoio/hugo/releases/download/v0.164.0/hugo_0.164.0_darwin-universal.pkg" -url_api = "https://api.github.com/repos/gohugoio/hugo/releases/assets/468320272" +checksum = "sha256:b9dfc437df19dfd44720caf2e0ba7f9ca5c2e61164f2f4c53456f74d6fa28d22" +checksum_source = "mise-versions" +url = "https://github.com/gohugoio/hugo/releases/download/v0.170.0/hugo_0.170.0_darwin-universal.pkg" +url_api = "https://api.github.com/repos/gohugoio/hugo/releases/assets/744016098" [tools.hugo."platforms.windows-x64"] -checksum = "sha256:dadf3499d4c6a27f6bc9d56d5a992ba62d82a74a3771fcc165c364ec1eeaac1c" -url = "https://github.com/gohugoio/hugo/releases/download/v0.164.0/hugo_0.164.0_windows-amd64.zip" -url_api = "https://api.github.com/repos/gohugoio/hugo/releases/assets/468320283" +checksum = "sha256:56c2bc95f3fc0b6be060f0a4a23a0287fb3954c6595f6f170b49330366083df5" +checksum_source = "mise-versions" +url = "https://github.com/gohugoio/hugo/releases/download/v0.170.0/hugo_0.170.0_windows-amd64.zip" +url_api = "https://api.github.com/repos/gohugoio/hugo/releases/assets/744016110" [[tools.lychee]] version = "0.24.2" diff --git a/src/Exception/AddressNotFoundException.php b/src/Exception/AddressNotFoundException.php index acc25186..3652b7c2 100644 --- a/src/Exception/AddressNotFoundException.php +++ b/src/Exception/AddressNotFoundException.php @@ -6,6 +6,8 @@ /** * This class represents a generic error. + * + * @final */ // phpcs:disable class AddressNotFoundException extends GeoIp2Exception {} diff --git a/src/Exception/AuthenticationException.php b/src/Exception/AuthenticationException.php index d0f678b4..9c3b4a43 100644 --- a/src/Exception/AuthenticationException.php +++ b/src/Exception/AuthenticationException.php @@ -6,6 +6,8 @@ /** * This class represents a generic error. + * + * @final */ // phpcs:disable class AuthenticationException extends GeoIp2Exception {} diff --git a/src/Exception/InvalidRequestException.php b/src/Exception/InvalidRequestException.php index 0a5b04ea..fc0d8201 100644 --- a/src/Exception/InvalidRequestException.php +++ b/src/Exception/InvalidRequestException.php @@ -7,6 +7,8 @@ /** * This class represents an error returned by MaxMind's GeoIP * web service. + * + * @final */ class InvalidRequestException extends HttpException { diff --git a/src/Exception/OutOfQueriesException.php b/src/Exception/OutOfQueriesException.php index 8e866f7c..1d4f2362 100644 --- a/src/Exception/OutOfQueriesException.php +++ b/src/Exception/OutOfQueriesException.php @@ -6,6 +6,8 @@ /** * This class represents a generic error. + * + * @final */ // phpcs:disable class OutOfQueriesException extends GeoIp2Exception {} diff --git a/src/Model/AnonymousPlus.php b/src/Model/AnonymousPlus.php index bfb0c569..a621d629 100644 --- a/src/Model/AnonymousPlus.php +++ b/src/Model/AnonymousPlus.php @@ -6,6 +6,8 @@ /** * This class provides the GeoIP Anonymous Plus model. + * + * @final */ class AnonymousPlus extends AnonymousIp { diff --git a/src/Model/Enterprise.php b/src/Model/Enterprise.php index 2837e92a..cce5b421 100644 --- a/src/Model/Enterprise.php +++ b/src/Model/Enterprise.php @@ -9,6 +9,8 @@ * * See https://dev.maxmind.com/geoip/docs/web-services/?lang=en for more * details. + * + * @final */ // phpcs:disable class Enterprise extends City {} diff --git a/src/Model/Insights.php b/src/Model/Insights.php index a4d751fb..5ec59d6e 100644 --- a/src/Model/Insights.php +++ b/src/Model/Insights.php @@ -11,6 +11,8 @@ * * See https://dev.maxmind.com/geoip/docs/web-services/?lang=en for * more details. + * + * @final */ class Insights extends City { diff --git a/src/Record/Anonymizer.php b/src/Record/Anonymizer.php index 3a8ee59b..b0b7dd87 100644 --- a/src/Record/Anonymizer.php +++ b/src/Record/Anonymizer.php @@ -8,6 +8,8 @@ * Contains data for the anonymizer record associated with an IP address. * * This record is returned by the GeoIP Insights web service. + * + * @final */ class Anonymizer implements \JsonSerializable { diff --git a/src/Record/AnonymizerFeed.php b/src/Record/AnonymizerFeed.php index f59329fd..88949b39 100644 --- a/src/Record/AnonymizerFeed.php +++ b/src/Record/AnonymizerFeed.php @@ -9,6 +9,8 @@ * proxies. Additional anonymizer types may be added in the future. * * This record is returned by the GeoIP Insights web service. + * + * @final */ class AnonymizerFeed implements \JsonSerializable { diff --git a/src/Record/City.php b/src/Record/City.php index 9ebb9a28..233bb6a4 100644 --- a/src/Record/City.php +++ b/src/Record/City.php @@ -9,6 +9,8 @@ * * This record is returned by all location services and databases besides * Country. + * + * @final */ // phpcs:disable class City extends AbstractPlaceRecord {} diff --git a/src/Record/Continent.php b/src/Record/Continent.php index 380c423c..4c514eab 100644 --- a/src/Record/Continent.php +++ b/src/Record/Continent.php @@ -8,6 +8,8 @@ * Contains data for the continent record associated with an IP address. * * This record is returned by all location services and databases. + * + * @final */ class Continent extends AbstractNamedRecord { diff --git a/src/Record/MaxMind.php b/src/Record/MaxMind.php index b2c33d9c..642f0877 100644 --- a/src/Record/MaxMind.php +++ b/src/Record/MaxMind.php @@ -8,6 +8,8 @@ * Contains data about your account. * * This record is returned by all location services and databases. + * + * @final */ class MaxMind implements \JsonSerializable { diff --git a/src/Record/Postal.php b/src/Record/Postal.php index afc0a5d0..97c1f14d 100644 --- a/src/Record/Postal.php +++ b/src/Record/Postal.php @@ -9,6 +9,8 @@ * * This record is returned by all location databases and services besides * Country. + * + * @final */ class Postal implements \JsonSerializable { diff --git a/src/Record/RepresentedCountry.php b/src/Record/RepresentedCountry.php index 67f24b08..0f5de403 100644 --- a/src/Record/RepresentedCountry.php +++ b/src/Record/RepresentedCountry.php @@ -10,6 +10,8 @@ * This class contains the country-level data associated with an IP address * for the IP's represented country. The represented country is the country * represented by something like a military base. + * + * @final */ class RepresentedCountry extends Country { diff --git a/src/Record/Subdivision.php b/src/Record/Subdivision.php index 3719a6c3..7fc1d75c 100644 --- a/src/Record/Subdivision.php +++ b/src/Record/Subdivision.php @@ -9,6 +9,8 @@ * * This record is returned by all location databases and services besides * Country. + * + * @final */ class Subdivision extends AbstractPlaceRecord { diff --git a/src/Util.php b/src/Util.php index 79e813aa..d016f7cd 100644 --- a/src/Util.php +++ b/src/Util.php @@ -4,6 +4,9 @@ namespace GeoIp2; +/** + * @final + */ class Util { /** diff --git a/src/WebService/Client.php b/src/WebService/Client.php index 90797d6d..c9e1e645 100644 --- a/src/WebService/Client.php +++ b/src/WebService/Client.php @@ -48,13 +48,15 @@ * service. * * If the request fails, the client class throws an exception. + * + * @final */ class Client implements ProviderInterface { private readonly WsClient $client; private static string $basePath = '/geoip/v2.1'; - public const VERSION = 'v3.4.0'; + public const VERSION = 'v3.5.0'; /** * Constructor.