Skip to content

Adding keywords to Metadata requires countable object/array #28

Description

@tsmgeek

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions