Since the recent release of this package that added the US_Autocomplete_Pro namespace I've been receiving error ErrorException: Constant GEOLOCATE_TYPE_CITY already defined when I instantiate a SmartyStreets\PhpSdk\US_Street\Client instance using the SmartyStreets\PhpSdk\ClientBuilderbuildUsStreetApiClient function.
This is due to the identical constants defined in SmartyStreets\PhpSdk\US_Autocomplete\GeolocateType and SmartyStreets\PhpSdk\US_Autocomplete_Pro\GeolocateType.
This PR resolves this issue by adding checks to each of these classes to ensure the constants have not already been defined.
Since the recent release of this package that added the
US_Autocomplete_Pro
namespace I've been receiving errorErrorException: Constant GEOLOCATE_TYPE_CITY already defined
when I instantiate aSmartyStreets\PhpSdk\US_Street\Client
instance using theSmartyStreets\PhpSdk\ClientBuilder
buildUsStreetApiClient
function.This is due to the identical constants defined in
SmartyStreets\PhpSdk\US_Autocomplete\GeolocateType
andSmartyStreets\PhpSdk\US_Autocomplete_Pro\GeolocateType
.This PR resolves this issue by adding checks to each of these classes to ensure the constants have not already been defined.