Skip to content

Commit cca2f70

Browse files
authored
ENH Update PHPDocs for methods with missing nullable return types (#11187)
1 parent 8aab888 commit cca2f70

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

src/Core/Manifest/ModuleResourceLoader.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class ModuleResourceLoader implements TemplateGlobalProvider
1919
* For other files, return original value
2020
*
2121
* @param string $resource
22-
* @return string
22+
* @return string|null
2323
*/
2424
public function resolvePath($resource)
2525
{
@@ -38,7 +38,7 @@ public function resolvePath($resource)
3838
* Resolves resource specifier to the given url.
3939
*
4040
* @param string $resource
41-
* @return string
41+
* @return string|null
4242
*/
4343
public function resolveURL($resource)
4444
{
@@ -60,7 +60,7 @@ public function resolveURL($resource)
6060
* Template wrapper for resolvePath
6161
*
6262
* @param string $resource
63-
* @return string
63+
* @return string|null
6464
*/
6565
public static function resourcePath($resource)
6666
{
@@ -71,7 +71,7 @@ public static function resourcePath($resource)
7171
* Template wrapper for resolveURL
7272
*
7373
* @param string $resource
74-
* @return string
74+
* @return string|null
7575
*/
7676
public static function resourceURL($resource)
7777
{

src/Security/Member.php

+3-4
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ public static function set_password_validator(PasswordValidator $validator = nul
390390
/**
391391
* Returns the default {@link PasswordValidator}
392392
*
393-
* @return PasswordValidator
393+
* @return PasswordValidator|null
394394
*/
395395
public static function password_validator()
396396
{
@@ -575,8 +575,7 @@ public function validateAutoLoginToken($autologinToken)
575575
* @param string $hash The hash key
576576
* @param bool $login Should the member be logged in?
577577
*
578-
* @return Member the matching member, if valid
579-
* @return Member
578+
* @return Member|null the matching member, if valid or null
580579
*/
581580
public static function member_from_autologinhash($hash, $login = false)
582581
{
@@ -597,7 +596,7 @@ public static function member_from_autologinhash($hash, $login = false)
597596
* Find a member record with the given TempIDHash value
598597
*
599598
* @param string $tempid
600-
* @return Member
599+
* @return Member|null the matching member, if valid or null
601600
*/
602601
public static function member_from_tempid($tempid)
603602
{

0 commit comments

Comments
 (0)