Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1205,17 +1205,19 @@ public function testForms(): void
'default.latte',
];
} else {
$expectedErrors[] = [
'Parameter #1 $item of static method Nette\\Bridges\\FormsLatte\\Runtime::item() expects int|object|string, mixed given.',
142,
'default.latte',
];
$expectedErrors[] = [
'Unable to resolve the template type T in call to static method Nette\\Bridges\\FormsLatte\\Runtime::item()',
142,
'default.latte',
'See: https://phpstan.org/blog/solving-phpstan-error-unable-to-resolve-template-type',
];
if (DependencyVersion::phpstanAtLeast23()) {
$expectedErrors[] = [
'Parameter #1 $item of static method Nette\\Bridges\\FormsLatte\\Runtime::item() expects int|object|string, mixed given.',
142,
'default.latte',
];
$expectedErrors[] = [
'Unable to resolve the template type T in call to static method Nette\\Bridges\\FormsLatte\\Runtime::item()',
142,
'default.latte',
'See: https://phpstan.org/blog/solving-phpstan-error-unable-to-resolve-template-type',
];
}
$expectedErrors[] = [
'PHPDoc tag @var with type Nette\\Forms\\Controls\\BaseControl is not subtype of type Nette\\Forms\\Controls\\TextArea.',
55,
Expand Down Expand Up @@ -1358,19 +1360,6 @@ public function testForms(): void
55,
'default.latte',
];
if (!DependencyVersion::netteFormsAtLeast33()) {
$expectedErrors[] = [
'Parameter #1 $item of static method Nette\\Bridges\\FormsLatte\\Runtime::item() expects int|object|string, mixed given.',
142,
'default.latte',
];
$expectedErrors[] = [
'Unable to resolve the template type T in call to static method Nette\\Bridges\\FormsLatte\\Runtime::item()',
142,
'default.latte',
'See: https://phpstan.org/blog/solving-phpstan-error-unable-to-resolve-template-type',
];
}
}
if (DependencyVersion::phpstanAtLeast23()) {
// PHPStan 2.3 dead-code checks on nette/forms 3.1 generated template code
Expand Down
Loading