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
<?php/** * @return array{ * a: int, * } */functionf1() {
return ['a' => 1 ];
}
// note: in above example, there's a whitespace after 'a:string,'// removing which makes parser happy:/** * @return array{ * a: int, * } */functionf2() {
return ['a' => 1 ];
}
Psalm output (using commit 73ebe22):
ERROR: InvalidDocblock - 8:1 - Cannot parse array type in docblock for f1
INFO: MissingReturnType - 8:10 - Method f1 does not have a return type, expecting array{a: 1}
https://psalm.dev/r/012810a311
The text was updated successfully, but these errors were encountered: