Skip to content

Commit 31657b0

Browse files
committed
Fix Geo Location Token only allowing string
Fixes #343
1 parent 41bd10d commit 31657b0

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 4.0.1 - 2022-05-18
2+
### Fixed
3+
- Fix Geo Location Token only allowing string (Fixes #343)
4+
15
## 4.0.0 - 2022-05-10
26
### Fixed
37
- Mostly functional, only slightly buggy, Craft 4 Support

src/models/Settings.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ class Settings extends Model
7777
/** @var string The geo-location service */
7878
public string $geoLocationService = GeoLocationService::None;
7979

80-
/** @var string The token for the geo-location service */
81-
public string $geoLocationToken = '';
80+
/** @var string|array The token for the geo-location service */
81+
public string|array $geoLocationToken = '';
8282

8383
/** @var string|int How long to cache IP look-ups for (set to 0 to disable caching) */
8484
public string|int $geoLocationCacheDuration = 'P2M';

0 commit comments

Comments
 (0)