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

Adding keywords to Metadata requires countable object/array #28

Open
tsmgeek opened this issue May 14, 2021 · 0 comments
Open

Adding keywords to Metadata requires countable object/array #28

tsmgeek opened this issue May 14, 2021 · 0 comments

Comments

@tsmgeek
Copy link

tsmgeek commented May 14, 2021

In recent PHP versions it is required that an object is an array/countable before you do a count on it.

https://github.com/chapter-three/AppleNewsAPI/blob/master/src/Document/Metadata.php#L338

PHP Warning: count(): Parameter must be an array or an object that implements Countable in D:\CodeRepo\apple-news-compile-test\vendor\chapter-three\apple-news-api\src\Document\Metadata.php on line 338

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

1 participant