Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error using example #11

Open
koAndy opened this issue Dec 16, 2019 · 3 comments
Open

Error using example #11

koAndy opened this issue Dec 16, 2019 · 3 comments

Comments

@koAndy
Copy link

koAndy commented Dec 16, 2019

Hy,

Just copy and paste the example described in readme.md and it gives me the following error:

PHP Catchable fatal error: Argument 1 passed to ElasticEmailClient\ApiConfiguration::setApiKey() must be an instance of ElasticEmailClient\string, string given

@koAndy
Copy link
Author

koAndy commented Dec 16, 2019

btw, i think your examples are very outdated.
For example, argument 10, 11, 12 cannot be null, must be array according to sending method definition.

@carlocaprini
Copy link

I am experiencing the same problem with the ElasticEmailClient\string @koAndy , let me know if you manage to solve it please. I will do the same.

@carlocaprini
Copy link

It seems I was using a too old version of PHP: while using PHP 7.1 the library is working correctly (including the example the documentation).
@koAndy you should check you version and, in case, update it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants