Skip to content
Snippets Groups Projects
Commit 817b58fe authored by Tim van Dijen's avatar Tim van Dijen
Browse files

Help Psalm to decide on the return-value

parent 55038506
No related branches found
No related tags found
No related merge requests found
......@@ -260,6 +260,7 @@ class State
* @throws \Exception If the stage of the state is invalid and there's no URL defined to redirect to.
*
* @return array|null State information, or NULL if the state is missing and $allowMissing is true.
* @psalm-return ($allowMissing is true ? array|null : array)
*/
public static function loadState(string $id, string $stage, bool $allowMissing = false): ?array
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment