ENH member_from_x methods can return null

and fix extra return tag
This commit is contained in:
Thomas Portelange 2024-03-29 13:43:47 +01:00 committed by GitHub
parent 47402769c6
commit 1315644a23
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 3 deletions

View File

@ -575,8 +575,7 @@ class Member extends DataObject
* @param string $hash The hash key
* @param bool $login Should the member be logged in?
*
* @return Member the matching member, if valid
* @return Member
* @return Member|null the matching member, if valid or null
*/
public static function member_from_autologinhash($hash, $login = false)
{
@ -597,7 +596,7 @@ class Member extends DataObject
* Find a member record with the given TempIDHash value
*
* @param string $tempid
* @return Member
* @return Member|null the matching member, if valid or null
*/
public static function member_from_tempid($tempid)
{