Enhance addClass()
and class()
methods to support BackedEnum
for CSS classes.
#1012
Annotations
4 errors
|
Static analysis.:
src/Tag/Base/Tag.php#L92
src/Tag/Base/Tag.php:92:53: PossiblyInvalidArgument: Argument 2 of Yiisoft\Html\Html::addCssClass expects array<array-key, null|string>|null|string, but possibly different type int|string provided (see https://psalm.dev/092)
|
Static analysis.:
src/Tag/Base/Tag.php#L113
src/Tag/Base/Tag.php:113:45: InvalidArgument: Argument 2 of Yiisoft\Html\Html::addCssClass expects array<array-key, null|string>|null|string, but list<int|string> provided (see https://psalm.dev/004)
|
Static analysis.
Process completed with exit code 2.
|
Loading