Skip to content

SpreadsheetReader count php 7.2 warning #99

Closed

Description

@SosthenG

Using the SpreadsheetReader on a file without a header row does not work with php 7.2 :

Uncaught PHP Exception ErrorException: "Warning: count(): Parameter must be an array or an object that implements Countable" at /vendor/portphp/spreadsheet/src/SpreadsheetReader.php line 131

columnHeaders is not an array (never initialized) at this moment if we read a file without specifying the header line.

Activity

  1. added a commit that references this issue on Jun 1, 2019
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