Skip to content

Commit

Permalink
ENH Update PHPDocs for methods with missing nullable return types (#1…
Browse files Browse the repository at this point in the history
  • Loading branch information
lekoala authored Apr 2, 2024
1 parent 8aab888 commit cca2f70
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
8 changes: 4 additions & 4 deletions src/Core/Manifest/ModuleResourceLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand All @@ -38,7 +38,7 @@ public function resolvePath($resource)
* Resolves resource specifier to the given url.
*
* @param string $resource
* @return string
* @return string|null
*/
public function resolveURL($resource)
{
Expand All @@ -60,7 +60,7 @@ public function resolveURL($resource)
* Template wrapper for resolvePath
*
* @param string $resource
* @return string
* @return string|null
*/
public static function resourcePath($resource)
{
Expand All @@ -71,7 +71,7 @@ public static function resourcePath($resource)
* Template wrapper for resolveURL
*
* @param string $resource
* @return string
* @return string|null
*/
public static function resourceURL($resource)
{
Expand Down
7 changes: 3 additions & 4 deletions src/Security/Member.php
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ public static function set_password_validator(PasswordValidator $validator = nul
/**
* Returns the default {@link PasswordValidator}
*
* @return PasswordValidator
* @return PasswordValidator|null
*/
public static function password_validator()
{
Expand Down Expand Up @@ -575,8 +575,7 @@ public function validateAutoLoginToken($autologinToken)
* @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)
{
Expand All @@ -597,7 +596,7 @@ public static function member_from_autologinhash($hash, $login = false)
* 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)
{
Expand Down

0 comments on commit cca2f70

Please sign in to comment.