Closed timkley closed 3 years ago
I'm hesitant about dropping getContactList
method argument as this will be a BC breaking modification. Alternatively we can keep it but don't pass to Emarsys. This is a code smell but keeps a BC.
I personally would drop it and release version 2.0.0. Your call @Moinax.
Maybe can we keep it in minor version with @deprecated notation (as suggested by @tim-bezhashvyly ) and remove it in the next major version.
How should a I mark only the param as deprecated
? Should it trigger an error?
This is a difficult topic as there is no standardized way to do so, as far as i know. The Symfony-Way is to trigger a "muted" error.
@trigger_error('.........', E_USER_DEPRECATED)
which can be handled by a custom error-handler.
There is no IDE support thought... (Poor, I know, but don't know any other way aroud it)
As stated in the official documentation, the
GET
endpoint/contactlist
is not filterable as you would think by the current implementation.If you provide anything but an empty array, you'll receive the following, misleading error:
I propose to remove the need of specifying an array completely.