maxmind / GeoIP2-php

PHP API for GeoIP2 webservice client and database reader
https://maxmind.github.io/GeoIP2-php/
Apache License 2.0
2.33k stars 276 forks source link

Mismatch between documentation and code #20

Closed sphoto closed 10 years ago

sphoto commented 10 years ago

Properties $name and $names not used in class 'RepresentedCountry', but specified in documentation

$record->representedCountry->name; --> thrown an exception

$record->representedCountry->namespace; --> works!

oschwald commented 10 years ago

Thanks for mentioning that. It is fixed in master.