Skip to content

Add Stringable interface support in Validator.php #680

Add Stringable interface support in Validator.php

Add Stringable interface support in Validator.php #680

Triggered via pull request February 22, 2026 04:53
Status Failure
Total duration 19s
Artifacts

static-analysis.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors
PHPStan: src/Forms/Controls/ColorPicker.php#L31
Parameter #1 $value (string|null) of method Nette\Forms\Controls\ColorPicker::setValue() should be contravariant with parameter $value (mixed) of method Nette\Forms\Controls\BaseControl::setValue()
PHPStan: src/Forms/Controls/ColorPicker.php#L31
Parameter #1 $value (string|null) of method Nette\Forms\Controls\ColorPicker::setValue() should be contravariant with parameter $value (mixed) of method Nette\Forms\Control::setValue()
PHPStan: src/Forms/Controls/ChoiceControl.php#L54
Parameter #1 $value (BackedEnum|int|string|null) of method Nette\Forms\Controls\ChoiceControl::setValue() should be contravariant with parameter $value (mixed) of method Nette\Forms\Controls\BaseControl::setValue()
PHPStan: src/Forms/Controls/ChoiceControl.php#L54
Parameter #1 $value (BackedEnum|int|string|null) of method Nette\Forms\Controls\ChoiceControl::setValue() should be contravariant with parameter $value (mixed) of method Nette\Forms\Control::setValue()
PHPStan: src/Forms/Controls/BaseControl.php#L371
Strict comparison using === between Nette\Forms\Controls\true|Nette\Localization\Translator|null and true will always evaluate to false.
PHPStan: src/Forms/Controls/BaseControl.php#L62
Property Nette\Forms\Controls\BaseControl::$translator has unknown class Nette\Forms\Controls\true as its type.
PHPStan: src/Forms/Controls/BaseControl.php#L62
Property Nette\Forms\Controls\BaseControl::$translator (Nette\Forms\Controls\true|Nette\Localization\Translator|null) does not accept default value of type true.
PHPStan: src/Bridges/FormsLatte/Nodes/FieldNNameNode.php#L112
Access to property $name on an unknown class Latte\Compiler\Nodes\Html\ExpressionAttributeNode.
PHPStan: src/Bridges/FormsLatte/Nodes/FieldNNameNode.php#L111
Class Latte\Compiler\Nodes\Html\ExpressionAttributeNode not found.
PHPStan: src/Bridges/FormsLatte/Nodes/FieldNNameNode.php#L0
Ignored error pattern #^Using nullsafe property access on non\-nullable type Latte\\Compiler\\Nodes\\FragmentNode\. Use \-\> instead\.$# (nullsafe.neverNull) in path /home/runner/work/forms/forms/src/Bridges/FormsLatte/Nodes/FieldNNameNode.php was not matched in reported errors.