Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FP] Senseless proxy function for overwritten constructor with promoted property #1934

Open
jdreesen opened this issue Mar 22, 2024 · 0 comments

Comments

@jdreesen
Copy link
Contributor

Subject Details
Plugin Php Inspections (EA Ultimate) 2024.1.1
Language level PHP 8.1

Current behaviour

EA reports a senseless proxy function for an overwritten constructor which uses property promotion:
grafik

Expected behaviour

No report, because it does not only call the parent one.
It also defines and assigns a property in the child class.

Environment details

PhpStorm 2023.3.4
Build #PS-233.14475.35, built on February 13, 2024
Runtime version: 17.0.10+1-b1087.17 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Linux 5.4.0-173-generic
GC: G1 Young Generation, G1 Old Generation
Memory: 6144M
Cores: 8
Current Desktop: ubuntu:GNOME

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant