AppleNewsAPI icon indicating copy to clipboard operation
AppleNewsAPI copied to clipboard

Adding keywords to Metadata requires countable object/array

Open tsmgeek opened this issue 3 years ago • 0 comments

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

tsmgeek avatar May 14 '21 11:05 tsmgeek