Skip to content

Commit ce3406e

Browse files
committed
Deprecate metro code
1 parent aba0367 commit ce3406e

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
CHANGELOG
22
=========
33

4+
3.2.0
5+
------------------
6+
7+
* `metroCode` on `GeoIp2\Record\Location` has been deprecated. The code
8+
values are no longer being maintained.
9+
410
3.1.0 (2024-11-15)
511
------------------
612

src/Record/Location.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@ class Location implements \JsonSerializable
4343
public readonly ?float $longitude;
4444

4545
/**
46-
* @var int|null The metro code of the location if the location
47-
* is in the US. MaxMind returns the same metro codes as the
48-
* Google AdWords API. See
49-
* https://developers.google.com/adwords/api/docs/appendix/cities-DMAregions.
46+
* @var int|null the metro code is a no-longer-maintained code for targeting
47+
* advertisements in Google
48+
*
49+
* @deprecated
5050
*/
5151
public readonly ?int $metroCode;
5252

0 commit comments

Comments
 (0)