Skip to content

Error: Count on an uncountable object #2

Description

@AllenJB

As seen here:

The code performs count() on a PDOStatement, but PDOStatement's are not countable objects. On PHP 7 this will emit an error. On PHP 5 this will always result in a true statement (because count() on an object that does not implement Countable always returns 1)

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