Skip to content

Commit 2d7735e

Browse files
committed
Ignore errors related to form containers which are not yet (fully) supported
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.
1 parent 9fda4dd commit 2d7735e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

site/phpstan-latte-templates.neon

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@ parameters:
66
latte:
77
engineBootstrap: app/PhpStan/latteEngine.php
88
presenterFactoryBootstrap: app/PhpStan/presenterFactory.php
9+
ignoreErrors:
10+
- # `<button n:name="$record->id" ...>` in `{formContainer statusHistoryDelete}` https://github.com/efabrica-team/phpstan-latte/pull/380
11+
message: '#^Call to an undefined method ApplicationForm_[a-f0-9]+_statusHistoryDelete\|Nette\\Forms\\Controls\\BaseControl::getControlPart\(\)#'
12+
path: app/Admin/Presenters/templates/Trainings/application.latte
13+
- # `{input "applications-{$application->id}" ...}` is an `$application->id` input in `applications` container https://github.com/efabrica-team/phpstan-latte/pull/380
14+
message: '#^Call to an undefined method Nette\\Forms\\Controls\\BaseControl\|Statuses_[a-f0-9]+_applications::getControl\(\)#'
15+
path: app/Admin/Presenters/templates/Trainings/date.latte
916

1017
includes:
1118
- vendor/phpstan/phpstan-nette/extension.neon

0 commit comments

Comments
 (0)