Skip to content

EnforceReadonlyPublicProperty: add support for Nette Inject #304

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

Conversation

mzk
Copy link

@mzk mzk commented May 21, 2025

Nette\InvalidStateException

Property App\ApiModule\ErrorPresenter::$responseFactory for injection must not be readonly.

@mzk mzk changed the title EnforceReadonlyPublicPropertyRule: add support for Nette Inject EnforceReadonlyPublicProperty: add support for Nette Inject May 21, 2025
@janedbal
Copy link
Member

Sorry, I dont want to try to support all possible libs/frameworks where this rule conflicts with some limitation. You can:

  • disable this rule and reimplement it yourself
  • easily ignore violations emmited by this rule based on attribute/phpdoc via IgnoreErrorExtension

@janedbal janedbal closed this May 21, 2025
@mzk mzk deleted the os-EnforceReadonlyPublicPropertyRule-support-for-nette-inject branch May 21, 2025 11:34
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

Successfully merging this pull request may close these issues.

2 participants