Error: Declaration of Torann\GeoIP\Location::offsetExists(Torann\GeoIP\mixed $offset): bool must be compatible with ArrayAccess::offsetExists($offset)
netm opened this issue · comments
Trying to get this working:
- Laravel 8.0 on PHP 7.3.16-fpm
- Installed laravel-geoip with Composer
- Cache Driver to Array
- Installed geoip2 with Composer
- Set /config/geoip.php 'service' to use 'maxmind_database'
- Created Maxmin account and added Maxmind credentials to .env
// Running this
$location = \GeoIP::getLocation(\Request::ip());
// Gives me:
Declaration of Torann\GeoIP\Location::offsetExists(Torann\GeoIP\mixed $offset): bool must be compatible with ArrayAccess::offsetExists($offset)