yiisoft / view

Yii view rendering library
https://www.yiiframework.com/
BSD 3-Clause "New" or "Revised" License
56 stars 44 forks source link

Add types to `ViewInterface::setParameter()` and `ViewInterface::addToParameter` #248

Closed vjik closed 5 months ago

vjik commented 8 months ago

Need add type mixed to parameter $value.

-    public function setParameter(string $id, $value): static;
+    public function setParameter(string $id, mixed $value): static;

-    public function addToParameter(string $id, ...$value): static;
+    public function addToParameter(string $id, mixed ...$value): static;

After these changes need also to remove MixedTypeRector::class from "skip" section in rector configuration.