From aba036741d0543e727e5cfca6ac2f422fdcb13c7 Mon Sep 17 00:00:00 2001 From: Gregory Oschwald Date: Mon, 13 Jan 2025 12:24:45 -0800 Subject: [PATCH 1/2] Fix typo --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7f01bd2..68e83f9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,7 +15,7 @@ CHANGELOG * IMPORTANT: PHP 8.1 or greater is now required. * BREAKING: Read-only properties are now used for the model and record classes rather than magic methods. This significantly improves performance. -* BREAKING: The `raw` property on model classess and the `record` property on +* BREAKING: The `raw` property on model classes and the `record` property on record classes have been removed. * BREAKING: On `GeoIp2\Record\Traits`, the deprecated `isAnonymousProxy` and `isSatelliteProvider` properties have been removed. From ce3406e65a1ff95334cff4241ed0b0c654f8ee41 Mon Sep 17 00:00:00 2001 From: Gregory Oschwald Date: Mon, 13 Jan 2025 12:25:16 -0800 Subject: [PATCH 2/2] Deprecate metro code --- CHANGELOG.md | 6 ++++++ src/Record/Location.php | 8 ++++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 68e83f9..d994915 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,12 @@ CHANGELOG ========= +3.2.0 +------------------ + +* `metroCode` on `GeoIp2\Record\Location` has been deprecated. The code + values are no longer being maintained. + 3.1.0 (2024-11-15) ------------------ diff --git a/src/Record/Location.php b/src/Record/Location.php index 6172ac8..76dc86d 100644 --- a/src/Record/Location.php +++ b/src/Record/Location.php @@ -43,10 +43,10 @@ class Location implements \JsonSerializable public readonly ?float $longitude; /** - * @var int|null The metro code of the location if the location - * is in the US. MaxMind returns the same metro codes as the - * Google AdWords API. See - * https://developers.google.com/adwords/api/docs/appendix/cities-DMAregions. + * @var int|null the metro code is a no-longer-maintained code for targeting + * advertisements in Google + * + * @deprecated */ public readonly ?int $metroCode;