Skip to content

Commit c3b26d4

Browse files
authored
Declare conditional return type
1 parent f97d1e8 commit c3b26d4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/Saml2/Utils.php

+1
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,7 @@ public static function getStringBetween($str, $start, $end)
300300
* @param bool $stay True if we want to stay (returns the url string) False to redirect
301301
*
302302
* @return string|null $url
303+
* @phpstan-return ($stay is true ? string : never)
303304
*
304305
* @throws OneLogin_Saml2_Error
305306
*/

0 commit comments

Comments
 (0)