Skip to content

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