Skip to content

Fix PHPStan complaining about accessing protected currentGroup property #120

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

Merged
merged 1 commit into from
Jun 7, 2025

Conversation

jtojnar
Copy link
Collaborator

@jtojnar jtojnar commented Jun 7, 2025

PHPStan 2.1.8 started to complain about property.protected:

Access to protected property Nette\Forms\Container::$currentGroup.

See phpstan/phpstan#13123

Fortunately, Nette provides a public method we can use instead.

…erty

PHPStan 2.1.8 started to complain about `property.protected`:

    Access to protected property Nette\Forms\Container::$currentGroup.

See phpstan/phpstan#13123

Fortunately, Nette provides a public method we can use instead.
@jtojnar jtojnar merged commit 8fede17 into master Jun 7, 2025
17 checks passed
@jtojnar jtojnar deleted the phpstan branch June 7, 2025 20:05
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