Skip to content

Regression: type narrowing on non-empty-list array shape #14297

Closed

Description

@ondrejmirtes

Bug report

See: https://phpstan.org/r/4a6f7ad0-6712-46f9-b793-1784b3952d63

Code snippet that reproduces the problem

https://phpstan.org/r/4a6f7ad0-6712-46f9-b793-1784b3952d63

Expected output

No errors

Did PHPStan help you today? Did it make you happy in any way?

No response

Activity

  1. added this to the Easy fixes milestone on Mar 16, 2026
  2. phpstan-bot commented on Mar 16, 2026

    @phpstan-bot
    Contributor

    Closed via merging phpstan/phpstan-src#5227

  3. github-actions commented on Apr 17, 2026

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

  4. locked as resolved and limited conversation to collaborators on Apr 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions