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

Update phpstan-baseline.neon #4611

Closed
wants to merge 1 commit into from
Closed

Update phpstan-baseline.neon #4611

wants to merge 1 commit into from

Conversation

stof
Copy link
Member

@stof stof commented Mar 6, 2025

Ignore errors about Node protected properties that could be overridden in child classes with properties using hooks that would not allow unsetting array items. For now, we ignore this potential issue.

The solution to fix this would be to define the properties as private in 4.0, forcing child classes to use the public methods to access them. Another solution could be to mark the property as final, but this requires PHP 8.4+

Ignore errors about Node protected properties that could be overridden in child classes with properties using hooks that would not allow unsetting array items.
@stof
Copy link
Member Author

stof commented Mar 6, 2025

Closing this as the failure seen in https://github.com/twigphp/Twig/actions/runs/13700986354/job/38314455486 was actually an issue in phpstan itself (unset array indexes is not an issue here) and it has already been fixed.

@stof stof closed this Mar 6, 2025
@stof stof deleted the patch-1 branch March 6, 2025 17:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant