FormElements: Fix return type of createElement()
method and related code
#816
Annotations
10 errors and 1 warning
PHPStan:
src/Form.php#L1
Ignored error pattern #^Parameter \#1 \$attributes of method ipl\\Html\\Contract\\FormElement\:\:addAttributes\(\) expects iterable, mixed given\.$# in path /app/src/Form.php was not matched in reported errors.
|
PHPStan:
src/FormElement/BaseFormElement.php#L196
Parameter #1 $validators of method ipl\Validator\ValidatorChain::addValidators() expects Traversable<int|string, mixed>, iterable given.
|
PHPStan:
src/FormElement/BaseFormElement.php#L210
Parameter #1 $validators of method ipl\Validator\ValidatorChain::addValidators() expects Traversable<int|string, mixed>, iterable given.
|
PHPStan:
src/FormElement/BaseFormElement.php#L378
Ignored error pattern #^Cannot access offset 'name' on mixed\.$# in path /app/src/FormElement/BaseFormElement.php is expected to occur 2 times, but occurred only 1 time.
|
PHPStan:
src/FormElement/FieldsetElement.php#L1
Ignored error pattern #^Parameter \#1 \$attributes of method ipl\\Html\\Contract\\FormElement\:\:addAttributes\(\) expects iterable, mixed given\.$# in path /app/src/FormElement/FieldsetElement.php was not matched in reported errors.
|
PHPStan:
src/FormElement/FormElements.php (in context of class ipl/Html/Form)#L162
Parameter #1 $attributes of method ipl\Html\BaseHtmlElement::addAttributes() expects array|ipl\Html\Attributes, mixed given.
|
PHPStan:
src/FormElement/FormElements.php (in context of class ipl/Html/Form)#L190
Property ipl\Html\Form::$elements (array<ipl\Html\BaseHtmlElement&ipl\Html\Contract\FormElement>) does not accept array<ipl\Html\Contract\FormElement>.
|
PHPStan:
src/FormElement/FormElements.php (in context of class ipl/Html/FormElement/FieldsetElement)#L162
Parameter #1 $attributes of method ipl\Html\BaseHtmlElement::addAttributes() expects array|ipl\Html\Attributes, mixed given.
|
PHPStan:
src/FormElement/FormElements.php (in context of class ipl/Html/FormElement/FieldsetElement)#L190
Property ipl\Html\FormElement\FieldsetElement::$elements (array<ipl\Html\BaseHtmlElement&ipl\Html\Contract\FormElement>) does not accept array<ipl\Html\Contract\FormElement>.
|
PHPStan
Process completed with exit code 1.
|
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Loading