cs #668
Annotations
10 errors
|
PHPStan:
src/Forms/Controls/BaseControl.php#L380
Method Nette\Forms\Controls\BaseControl::getTranslator() should return Nette\Localization\Translator|null but returns Nette\Forms\Controls\true|Nette\Localization\Translator|null.
|
|
PHPStan:
src/Forms/Controls/BaseControl.php#L374
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/Forms/Container.php#L134
PHPDoc tag `@return` has invalid value (($returnType is class-string<T> ? T : ($returnType is 'array' ? array<string, mixed> : ($returnType is object ? $returnType : ArrayHash)))): Unexpected token "$returnType", expected type at offset 318 on line 6
|
|
PHPStan:
src/Forms/Container.php#L92
PHPDoc tag `@return` has invalid value (($returnType is class-string<T> ? T : ($returnType is 'array'|true ? array<string, mixed> : ($returnType is object ? $returnType : ArrayHash)))): Unexpected token "$returnType", expected type at offset 304 on line 6
|
|
PHPStan:
src/Forms/Container.php#L0
Ignored error pattern #^PHPDoc tag `@return` has invalid value \(\(\$returnType is class\-string\<T\> \? T \: \(\$returnType is 'array'\|true \? array\<string, mixed\> \: \(\$returnType is object \? \$returnType \: ArrayHash\)\)\)\)\: Unexpected token "\$returnType", expected type at offset 309 on line 6$# (phpDoc.parseError) in path /home/runner/work/forms/forms/src/Forms/Container.php was not matched in reported errors.
|
|
PHPStan:
src/Forms/Container.php#L0
Ignored error pattern #^PHPDoc tag `@return` has invalid value \(\(\$returnType is class\-string\<T\> \? T \: \(\$returnType is 'array' \? array\<string, mixed\> \: \(\$returnType is object \? \$returnType \: ArrayHash\)\)\)\)\: Unexpected token "\$returnType", expected type at offset 323 on line 6$# (phpDoc.parseError) in path /home/runner/work/forms/forms/src/Forms/Container.php was not matched in reported errors.
|
|
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.
|