Skip to content

Commit 696543c

Browse files
authored
[Module] Add return type hint to isPublicModule (#7758)
Add a return type hint to the isPublicModule method. Resolves #4282
1 parent 60d3607 commit 696543c

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

modules/api/php/module.class.inc

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class Module extends \Module
3535
*
3636
* @return bool
3737
*/
38-
public function isPublicModule()
38+
public function isPublicModule() : bool
3939
{
4040
// The API is "public" because the login endpoint needs to be public.
4141
return true;

modules/login/php/module.class.inc

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class Module extends \Module
1919
*
2020
* @return bool true
2121
*/
22-
public function isPublicModule()
22+
public function isPublicModule() : bool
2323
{
2424
return true;
2525
}

php/libraries/Module.class.inc

+1-1
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ abstract class Module extends \LORIS\Router\PrefixRouter
225225
* @return bool False. Subclasses must override this function in the case
226226
* that they should be publicly available.
227227
*/
228-
public function isPublicModule()
228+
public function isPublicModule() : bool
229229
{
230230
return false;
231231
}

0 commit comments

Comments
 (0)