-
-
Notifications
You must be signed in to change notification settings - Fork 436
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
phpstan: fixed "Access to an undefined property" #2554
Conversation
why not protected? |
They should probably be protected by default unless there is a usage outside the class. |
Yes, BUT ... they were public all the time and someone could have used them outside the class. I can change it, because they should have not been used outside. Let me know. |
right, but php 8.2 deprecates public properties so... |
Public is still okay, but not dynamically set. |
Description (*)
Set undefined properties. I hope its correct to make "new" properties public.
Contribution checklist (*)