From b0928da0b7432fa665063a57cb483eaea35019aa Mon Sep 17 00:00:00 2001 From: connor Date: Thu, 21 Mar 2024 09:29:21 +0100 Subject: [PATCH] [util] fix return statement missing stan error --- lib/util/sfContext.class.php | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/lib/util/sfContext.class.php b/lib/util/sfContext.class.php index a0b9f5f75..41b540895 100644 --- a/lib/util/sfContext.class.php +++ b/lib/util/sfContext.class.php @@ -235,8 +235,8 @@ public function getEventDispatcher() /** * Retrieve the action name for this context. * - * @return string the currently executing action name, if one is set, - * otherwise null + * @return string|null the currently executing action name, if one is set, + * otherwise null */ public function getActionName() { @@ -245,6 +245,8 @@ public function getActionName() // @var $lastEntry sfActionStackEntry return $lastEntry->getActionName(); } + + return null; } /** @@ -341,8 +343,8 @@ public function getDatabaseManager() /** * Retrieve the module directory for this context. * - * @return string an absolute filesystem path to the directory of the - * currently executing module, if one is set, otherwise null + * @return string|null an absolute filesystem path to the directory of the + * currently executing module, if one is set, otherwise null */ public function getModuleDirectory() { @@ -351,13 +353,15 @@ public function getModuleDirectory() // @var $lastEntry sfActionStackEntry return sfConfig::get('sf_app_module_dir').'/'.$lastEntry->getModuleName(); } + + return null; } /** * Retrieve the module name for this context. * - * @return string the currently executing module name, if one is set, - * otherwise null + * @return string|null the currently executing module name, if one is set, + * otherwise null */ public function getModuleName() { @@ -366,6 +370,8 @@ public function getModuleName() // @var $lastEntry sfActionStackEntry return $lastEntry->getModuleName(); } + + return null; } /**