FormElements: Fix return type of createElement()
method and related code
#816
Annotations
60 errors and 12 warnings
Static analysis for php 7.3 on ubuntu-latest:
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.
|
Static analysis for php 7.3 on ubuntu-latest:
src/FormElement/BaseFormElement.php#L196
Parameter #1 $validators of method ipl\Validator\ValidatorChain::addValidators() expects Traversable<int|string, mixed>, iterable given.
|
Static analysis for php 7.3 on ubuntu-latest:
src/FormElement/BaseFormElement.php#L210
Parameter #1 $validators of method ipl\Validator\ValidatorChain::addValidators() expects Traversable<int|string, mixed>, iterable given.
|
Static analysis for php 7.3 on ubuntu-latest:
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.
|
Static analysis for php 7.3 on ubuntu-latest:
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.
|
Static analysis for php 7.3 on ubuntu-latest:
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.
|
Static analysis for php 7.3 on ubuntu-latest:
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>.
|
Static analysis for php 7.3 on ubuntu-latest:
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.
|
Static analysis for php 7.3 on ubuntu-latest:
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>.
|
Static analysis for php 7.3 on ubuntu-latest
Process completed with exit code 1.
|
Static analysis for php 8.0 on ubuntu-latest:
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.
|
Static analysis for php 8.0 on ubuntu-latest:
src/FormElement/BaseFormElement.php#L196
Parameter #1 $validators of method ipl\Validator\ValidatorChain::addValidators() expects Traversable<int|string, mixed>, iterable given.
|
Static analysis for php 8.0 on ubuntu-latest:
src/FormElement/BaseFormElement.php#L210
Parameter #1 $validators of method ipl\Validator\ValidatorChain::addValidators() expects Traversable<int|string, mixed>, iterable given.
|
Static analysis for php 8.0 on ubuntu-latest:
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.
|
Static analysis for php 8.0 on ubuntu-latest:
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.
|
Static analysis for php 8.0 on ubuntu-latest:
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.
|
Static analysis for php 8.0 on ubuntu-latest:
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>.
|
Static analysis for php 8.0 on ubuntu-latest:
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.
|
Static analysis for php 8.0 on ubuntu-latest:
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>.
|
Static analysis for php 8.0 on ubuntu-latest
Process completed with exit code 1.
|
Static analysis for php 8.2 on ubuntu-latest:
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.
|
Static analysis for php 8.2 on ubuntu-latest:
src/FormElement/BaseFormElement.php#L196
Parameter #1 $validators of method ipl\Validator\ValidatorChain::addValidators() expects Traversable<int|string, mixed>, iterable given.
|
Static analysis for php 8.2 on ubuntu-latest:
src/FormElement/BaseFormElement.php#L210
Parameter #1 $validators of method ipl\Validator\ValidatorChain::addValidators() expects Traversable<int|string, mixed>, iterable given.
|
Static analysis for php 8.2 on ubuntu-latest:
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.
|
Static analysis for php 8.2 on ubuntu-latest:
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.
|
Static analysis for php 8.2 on ubuntu-latest:
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.
|
Static analysis for php 8.2 on ubuntu-latest:
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>.
|
Static analysis for php 8.2 on ubuntu-latest:
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.
|
Static analysis for php 8.2 on ubuntu-latest:
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>.
|
Static analysis for php 8.2 on ubuntu-latest
Process completed with exit code 1.
|
Static analysis for php 7.2 on ubuntu-latest:
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.
|
Static analysis for php 7.2 on ubuntu-latest:
src/FormElement/BaseFormElement.php#L196
Parameter #1 $validators of method ipl\Validator\ValidatorChain::addValidators() expects Traversable<int|string, mixed>, iterable given.
|
Static analysis for php 7.2 on ubuntu-latest:
src/FormElement/BaseFormElement.php#L210
Parameter #1 $validators of method ipl\Validator\ValidatorChain::addValidators() expects Traversable<int|string, mixed>, iterable given.
|
Static analysis for php 7.2 on ubuntu-latest:
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.
|
Static analysis for php 7.2 on ubuntu-latest:
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.
|
Static analysis for php 7.2 on ubuntu-latest:
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.
|
Static analysis for php 7.2 on ubuntu-latest:
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>.
|
Static analysis for php 7.2 on ubuntu-latest:
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.
|
Static analysis for php 7.2 on ubuntu-latest:
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>.
|
Static analysis for php 7.2 on ubuntu-latest
Process completed with exit code 1.
|
Static analysis for php 7.4 on ubuntu-latest:
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.
|
Static analysis for php 7.4 on ubuntu-latest:
src/FormElement/BaseFormElement.php#L196
Parameter #1 $validators of method ipl\Validator\ValidatorChain::addValidators() expects Traversable<int|string, mixed>, iterable given.
|
Static analysis for php 7.4 on ubuntu-latest:
src/FormElement/BaseFormElement.php#L210
Parameter #1 $validators of method ipl\Validator\ValidatorChain::addValidators() expects Traversable<int|string, mixed>, iterable given.
|
Static analysis for php 7.4 on ubuntu-latest:
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.
|
Static analysis for php 7.4 on ubuntu-latest:
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.
|
Static analysis for php 7.4 on ubuntu-latest:
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.
|
Static analysis for php 7.4 on ubuntu-latest:
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>.
|
Static analysis for php 7.4 on ubuntu-latest:
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.
|
Static analysis for php 7.4 on ubuntu-latest:
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>.
|
Static analysis for php 7.4 on ubuntu-latest
Process completed with exit code 1.
|
Static analysis for php 8.1 on ubuntu-latest:
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.
|
Static analysis for php 8.1 on ubuntu-latest:
src/FormElement/BaseFormElement.php#L196
Parameter #1 $validators of method ipl\Validator\ValidatorChain::addValidators() expects Traversable<int|string, mixed>, iterable given.
|
Static analysis for php 8.1 on ubuntu-latest:
src/FormElement/BaseFormElement.php#L210
Parameter #1 $validators of method ipl\Validator\ValidatorChain::addValidators() expects Traversable<int|string, mixed>, iterable given.
|
Static analysis for php 8.1 on ubuntu-latest:
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.
|
Static analysis for php 8.1 on ubuntu-latest:
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.
|
Static analysis for php 8.1 on ubuntu-latest:
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.
|
Static analysis for php 8.1 on ubuntu-latest:
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>.
|
Static analysis for php 8.1 on ubuntu-latest:
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.
|
Static analysis for php 8.1 on ubuntu-latest:
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>.
|
Static analysis for php 8.1 on ubuntu-latest
Process completed with exit code 1.
|
Unit tests with php 8.1 on ubuntu-latest
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/.
|
Unit tests with php 8.0 on ubuntu-latest
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/.
|
Unit tests with php 7.2 on ubuntu-latest
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/.
|
Unit tests with php 7.3 on ubuntu-latest
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/.
|
Unit tests with php 7.4 on ubuntu-latest
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/.
|
Static analysis for php 7.3 on ubuntu-latest
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/.
|
Static analysis for php 8.0 on ubuntu-latest
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/.
|
Static analysis for php 8.2 on ubuntu-latest
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/.
|
Static analysis for php 7.2 on ubuntu-latest
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/.
|
Static analysis for php 7.4 on ubuntu-latest
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/.
|
Unit tests with php 8.2 on ubuntu-latest
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/.
|
Static analysis for php 8.1 on ubuntu-latest
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/.
|