Skip to content

Invalid argument supplied for foreach() #125

@kl3sk

Description

@kl3sk

When using this package I have:

PHP Warning:  Invalid argument supplied for foreach() in vendor/dbdiff/dbdiff/src/DB/Data/ArrayDiff.php on line 47
PHP Warning:  Invalid argument supplied for foreach() in vendor/dbdiff/dbdiff/src/DB/Data/ArrayDiff.php on line 79
PHP Warning:  Invalid argument supplied for foreach() in vendor/dbdiff/dbdiff/src/DB/Data/ArrayDiff.php on line 88

PHP 7.4.25
10.6.5-MariaDB-1:10.6.5+maria~focal
WSL2 Debian

$data1 = $this->dbiterator1->next(ArrayDiff::$size); return a Collection and array_merge require an array.

Unless using $data1->toArray() others errors occurs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugfixedFixed but not yet released

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions