Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[util] fix return statement missing stan error #351

Merged
merged 4 commits into from
Mar 21, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 12 additions & 6 deletions lib/util/sfContext.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
connorhu marked this conversation as resolved.
Show resolved Hide resolved
*/
public function getActionName()
{
Expand All @@ -245,6 +245,8 @@ public function getActionName()
// @var $lastEntry sfActionStackEntry
return $lastEntry->getActionName();
}

return null;
}

/**
Expand Down Expand Up @@ -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
connorhu marked this conversation as resolved.
Show resolved Hide resolved
*/
public function getModuleDirectory()
{
Expand All @@ -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
connorhu marked this conversation as resolved.
Show resolved Hide resolved
*/
public function getModuleName()
{
Expand All @@ -366,6 +370,8 @@ public function getModuleName()
// @var $lastEntry sfActionStackEntry
return $lastEntry->getModuleName();
}

return null;
}

/**
Expand Down