Closed ctadlock closed 10 years ago
The Country class (https://github.com/maxmind/GeoIP2-php/blob/master/src/GeoIp2/Model/Country.php) does not have an __isset() method so any code that tries to check the existance of a property using isset always returns false.
isset($omni->traits) // always false
More info... http://stackoverflow.com/questions/12899547/why-isset-always-returns-false-on-custom-object
Thanks for the report. We should be able to fix that in the next release.
We merged a fix for this into master today. Thanks for reporting the issue.
The Country class (https://github.com/maxmind/GeoIP2-php/blob/master/src/GeoIp2/Model/Country.php) does not have an __isset() method so any code that tries to check the existance of a property using isset always returns false.
isset($omni->traits) // always false
More info... http://stackoverflow.com/questions/12899547/why-isset-always-returns-false-on-custom-object