Skip to content

Commit

Permalink
Ignore errors related to form containers which are not yet (fully) su…
Browse files Browse the repository at this point in the history
…pported

I hope these would be solved one day when efabrica-team/phpstan-latte#380 is closed but currently, even when testing that branch, aren't.
  • Loading branch information
spaze committed Jul 17, 2023
1 parent 9fda4dd commit 2d7735e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions site/phpstan-latte-templates.neon
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ parameters:
latte:
engineBootstrap: app/PhpStan/latteEngine.php
presenterFactoryBootstrap: app/PhpStan/presenterFactory.php
ignoreErrors:
- # `<button n:name="$record->id" ...>` in `{formContainer statusHistoryDelete}` https://github.com/efabrica-team/phpstan-latte/pull/380
message: '#^Call to an undefined method ApplicationForm_[a-f0-9]+_statusHistoryDelete\|Nette\\Forms\\Controls\\BaseControl::getControlPart\(\)#'
path: app/Admin/Presenters/templates/Trainings/application.latte
- # `{input "applications-{$application->id}" ...}` is an `$application->id` input in `applications` container https://github.com/efabrica-team/phpstan-latte/pull/380
message: '#^Call to an undefined method Nette\\Forms\\Controls\\BaseControl\|Statuses_[a-f0-9]+_applications::getControl\(\)#'
path: app/Admin/Presenters/templates/Trainings/date.latte

includes:
- vendor/phpstan/phpstan-nette/extension.neon
Expand Down

0 comments on commit 2d7735e

Please sign in to comment.