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

"Parameter #1 $xxx of method xxx::__get() is not optional" error since 1.10.42 #10149

Closed
mvorisek opened this issue Nov 17, 2023 · 3 comments
Closed

Comments

@mvorisek
Copy link
Contributor

mvorisek commented Nov 17, 2023

Bug report

phpstan unignoreable error is unexpectedly emit since the latest/v1.10.42 release

Code snippet that reproduces the problem

https://phpstan.org/r/03788e92-7f0e-4a8f-9502-2a5657cfe8e4

Expected output

no phpstan error

@mvorisek
Copy link
Contributor Author

mvorisek commented Nov 17, 2023

checkMissingOverrideMethodAttribute: true test is also broken with the repro above

see https://3v4l.org/cZKab/rfc#vgit.master - \stdClass has no real __get method

@ondrejmirtes
Copy link
Member

Fixed: phpstan/phpstan-src@baf359e

Copy link

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 20, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants