Skip to content

Array assignment on non string/array/ArrayAccess should be an issue #724

@muglug

Description

@muglug
$arr = 5;
$arr[0] = 3;
echo $a; // outputs 5

Expected: some warning
Actual: no warning

Metadata

Metadata

Assignees

No one assigned

    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