Improve type inference for element attributes #560
Annotations
10 errors
src/Element.php#L88
src/Element.php:88:32: MoreSpecificReturnType: The declared return type 'null|string' for Laminas\Form\Element::getName is more specific than the inferred return type 'null|scalar' (see https://psalm.dev/070)
|
src/Element.php#L90
src/Element.php:90:16: LessSpecificReturnStatement: The type 'null|scalar' is more general than the declared return type 'null|string' for Laminas\Form\Element::getName (see https://psalm.dev/129)
|
src/Element/AbstractDateTime.php#L109
src/Element/AbstractDateTime.php:109:50: ArgumentTypeCoercion: Argument 1 of Laminas\Form\Element\AbstractDateTime::valueIsValidDateTimeFormat expects string, but parent type scalar provided (see https://psalm.dev/193)
|
src/Element/AbstractDateTime.php#L117
src/Element/AbstractDateTime.php:117:52: ArgumentTypeCoercion: Argument 1 of Laminas\Form\Element\AbstractDateTime::valueIsValidDateTimeFormat expects string, but parent type scalar provided (see https://psalm.dev/193)
|
src/Element/AbstractDateTime.php#L123
src/Element/AbstractDateTime.php:123:17: ArgumentTypeCoercion: Argument 4 of sprintf expects float|int|string, but parent type scalar provided (see https://psalm.dev/193)
|
src/Element/AbstractDateTime.php#L129
src/Element/AbstractDateTime.php:129:50: ArgumentTypeCoercion: Argument 1 of Laminas\Form\Element\AbstractDateTime::valueIsValidDateTimeFormat expects string, but parent type scalar provided (see https://psalm.dev/193)
|
src/Element/AbstractDateTime.php#L137
src/Element/AbstractDateTime.php:137:52: ArgumentTypeCoercion: Argument 1 of Laminas\Form\Element\AbstractDateTime::valueIsValidDateTimeFormat expects string, but parent type scalar provided (see https://psalm.dev/193)
|
src/Element/AbstractDateTime.php#L143
src/Element/AbstractDateTime.php:143:17: ArgumentTypeCoercion: Argument 4 of sprintf expects float|int|string, but parent type scalar provided (see https://psalm.dev/193)
|
src/Element/DateSelect.php#L81
src/Element/DateSelect.php:81:42: PossiblyInvalidArgument: Argument 1 of Laminas\Form\Element\Select::setAttributes expects iterable<string, null|scalar>, but possibly different type array<array-key, mixed> provided (see https://psalm.dev/092)
|
src/Element/DateTimeSelect.php#L131
src/Element/DateTimeSelect.php:131:43: PossiblyInvalidArgument: Argument 1 of Laminas\Form\Element\Select::setAttributes expects iterable<string, null|scalar>, but possibly different type array<array-key, mixed> provided (see https://psalm.dev/092)
|
The logs for this run have expired and are no longer available.
Loading