Skip to content

Union for array not recognized #150

@ADmad

Description

@ADmad

PHPantom version

0.8.0

Installation method

Pre-built binary from GitHub Releases

Operating system

Linux x86_64

Editor

Zed

Bug description

When doing a union for an array like $array += ['foo' => 'bar'] phpatom reports the resulting type for $array as int|float instead of array.

Steps to reproduce

.

Error output or panic trace


.phpantom.toml

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    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