You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I run psalm with an errorLevel set to 1 on this code I get the following error:
ERROR: MixedAssignment - tests/SomeTest.php:28:35 - Unable to determine the type that $value is being assigned to (see https://psalm.dev/032)
foreach ($data as $key => $value) {
I thought psalm might get this information from the @return docblock in the data provider. Do I need to duplicate the type for array $data as $param array< ... > $data on the testSomething method, or am I missing something?
The text was updated successfully, but these errors were encountered:
I have a question regarding the need to duplicate the types specified in
@return
in a data provider. Given the following test:If I run
psalm
with anerrorLevel
set to1
on this code I get the following error:I thought psalm might get this information from the
@return
docblock in the data provider. Do I need to duplicate the type forarray $data
as$param array< ... > $data
on thetestSomething
method, or am I missing something?The text was updated successfully, but these errors were encountered: