ENH Update PHPDocs for methods with missing nullable return types (#11187)

This commit is contained in:
Thomas Portelange 2024-04-02 02:33:09 +02:00 committed by GitHub
parent 8aab888d50
commit cca2f7059b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 8 deletions

View File

@ -19,7 +19,7 @@ class ModuleResourceLoader implements TemplateGlobalProvider
* For other files, return original value
*
* @param string $resource
* @return string
* @return string|null
*/
public function resolvePath($resource)
{
@ -38,7 +38,7 @@ class ModuleResourceLoader implements TemplateGlobalProvider
* Resolves resource specifier to the given url.
*
* @param string $resource
* @return string
* @return string|null
*/
public function resolveURL($resource)
{
@ -60,7 +60,7 @@ class ModuleResourceLoader implements TemplateGlobalProvider
* Template wrapper for resolvePath
*
* @param string $resource
* @return string
* @return string|null
*/
public static function resourcePath($resource)
{
@ -71,7 +71,7 @@ class ModuleResourceLoader implements TemplateGlobalProvider
* Template wrapper for resolveURL
*
* @param string $resource
* @return string
* @return string|null
*/
public static function resourceURL($resource)
{

View File

@ -390,7 +390,7 @@ class Member extends DataObject
/**
* Returns the default {@link PasswordValidator}
*
* @return PasswordValidator
* @return PasswordValidator|null
*/
public static function password_validator()
{
@ -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)
{