Skip to content

Error: Declaration of Torann\GeoIP\Location::offsetExists(Torann\GeoIP\mixed $offset): bool must be compatible with ArrayAccess::offsetExists($offset)Β #215

@gwilymgj

Description

@gwilymgj

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions