Skip to content

object template does not accept exact object type since v2.3.0 #15434

Open
phpstan/phpstan-src
#6745

Description

@mvorisek

Bug report

Covariant should not be needed. The template must be inferred with the first usage.

This was working prior v2.3.0 release.

Code snippet that reproduces the problem

https://phpstan.org/r/2ee3067c-0a57-4b15-b155-c8a08f140642

Expected output

no phpstan error

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions