Skip to content

Method Child::__construct() overrides method Parent::__construct() but misses parameter #X #11067

Closed

Description

@lyrixx

Bug report

It looks related to #7307

I attached a reproducer, I think i should not raise an error

Code snippet that reproduces the problem

https://phpstan.org/r/c08c08fd-e58c-4ee8-a962-6a2b8259abd0

Expected output

no error

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

Thanks for this tool!

Activity

  1. added this to the Easy fixes milestone on May 22, 2024
  2. phpstan-bot commented on Feb 26, 2026

    @phpstan-bot
    Contributor

    Closed via merging phpstan/phpstan-src#4945

  3. github-actions commented on Mar 30, 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 Mar 30, 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