Skip to content

Array intersection support #4703

@simPod

Description

@simPod

Feature request

PHPStan should be able to understand array{p: int}&array<string, string>.
I use it in cases when part of array is dynamic and part is known with fixed shape.

https://phpstan.org/r/7b1a6e08-c0de-41f2-932b-54e9305a6058

PHPDoc tag @param for parameter $i contains unresolvable type.

(https://psalm.dev/r/1914dd6087)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions