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

Uncaught TypeError #19

Open
edent opened this issue Sep 11, 2021 · 1 comment
Open

Uncaught TypeError #19

edent opened this issue Sep 11, 2021 · 1 comment

Comments

@edent
Copy link

edent commented Sep 11, 2021

Getting this error when I try to run the echo test

PHP Fatal error:  Uncaught TypeError: Typed property JeroenG\Flickr\Response::$contents must be array, bool used in /home/art/vendor/jeroen-g/flickr/src/Response.php:13
Stack trace:
#0 /home/art/vendor/jeroen-g/flickr/src/Api.php(38): JeroenG\Flickr\Response->__construct(Object(GuzzleHttp\Psr7\Response))
#1 /home/art/vendor/jeroen-g/flickr/src/Flickr.php(16): JeroenG\Flickr\Api->request('flickr.test.ech...', Array)
#2 /home/art/vendor/jeroen-g/flickr/src/Flickr.php(24): JeroenG\Flickr\Flickr->request('flickr.test.ech...', Array)
#3 /home/ar/test.php(11): JeroenG\Flickr\Flickr->echoThis('helloworld')
#4 {main}
  thrown in /home/art/vendor/jeroen-g/flickr/src/Response.php on line 13

I've just followed the README. I've added my $key as a string.

Have I missed something obvious?

@Jeroen-G
Copy link
Owner

Can you show the code you are trying to execute? And I assume you are running the latest version of this package?

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