Skip to content

Warning: A non-numeric value encountered #14

@justinhilles

Description

@justinhilles

$actualKey -= $removedOffset;

This line seems to be a causing an error when i pass 2 associative arrays, when i comment it out it works fine.

Here is an example of what im seeing trigger the error:

        $r = new JsonDiff(
            ["name" => "Test"],
            [],
            JsonDiff::REARRANGE_ARRAYS
        );

Running PHP 7.2.8

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