Describe return type accurately
This return type is conditional to $params['wrapperClass']. Luckily, recent versions of Psalm allow documenting it properly. See https://github.com/vimeo/psalm/issues/3277 Note that phpstan is not able to understand this yet, but still attempts to, hence the extra ignore rules.
Showing
... | ... | @@ -45,7 +45,7 @@ |
"phpunit/phpunit": "^8.5.5", | ||
"psalm/plugin-phpunit": "^0.10.0", | ||
"symfony/console": "^2.0.5|^3.0|^4.0|^5.0", | ||
"vimeo/psalm": "^3.11" | ||
"vimeo/psalm": "^3.11.4" | ||
}, | ||
"suggest": { | ||
"symfony/console": "For helpful console commands such as SQL execution and import of files." | ||
... | ... |
Please register or sign in to comment