Check attribute validity and return null on empty but valid attributes
This commit is contained in:
@@ -4,5 +4,9 @@ namespace GeoIP2\Record;
|
||||
|
||||
class RepresentedCountry extends Country
|
||||
{
|
||||
|
||||
protected $validAttributes = Array('confidence',
|
||||
'geoname_id',
|
||||
'iso_code',
|
||||
'names',
|
||||
'type');
|
||||
}
|
||||
Reference in New Issue
Block a user