Skip to content

Commit 0ccb132

Browse files
committed
[util] fix return statement missing stan error
1 parent 7ddc3d1 commit 0ccb132

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

lib/util/sfContext.class.php

+12-6
Original file line numberDiff line numberDiff line change
@@ -235,8 +235,8 @@ public function getEventDispatcher()
235235
/**
236236
* Retrieve the action name for this context.
237237
*
238-
* @return string the currently executing action name, if one is set,
239-
* otherwise null
238+
* @return string|null the currently executing action name, if one is set,
239+
* otherwise null
240240
*/
241241
public function getActionName()
242242
{
@@ -245,6 +245,8 @@ public function getActionName()
245245
// @var $lastEntry sfActionStackEntry
246246
return $lastEntry->getActionName();
247247
}
248+
249+
return null;
248250
}
249251

250252
/**
@@ -341,8 +343,8 @@ public function getDatabaseManager()
341343
/**
342344
* Retrieve the module directory for this context.
343345
*
344-
* @return string an absolute filesystem path to the directory of the
345-
* currently executing module, if one is set, otherwise null
346+
* @return string|null an absolute filesystem path to the directory of the
347+
* currently executing module, if one is set, otherwise null
346348
*/
347349
public function getModuleDirectory()
348350
{
@@ -351,13 +353,15 @@ public function getModuleDirectory()
351353
// @var $lastEntry sfActionStackEntry
352354
return sfConfig::get('sf_app_module_dir').'/'.$lastEntry->getModuleName();
353355
}
356+
357+
return null;
354358
}
355359

356360
/**
357361
* Retrieve the module name for this context.
358362
*
359-
* @return string the currently executing module name, if one is set,
360-
* otherwise null
363+
* @return string|null the currently executing module name, if one is set,
364+
* otherwise null
361365
*/
362366
public function getModuleName()
363367
{
@@ -366,6 +370,8 @@ public function getModuleName()
366370
// @var $lastEntry sfActionStackEntry
367371
return $lastEntry->getModuleName();
368372
}
373+
374+
return null;
369375
}
370376

371377
/**

0 commit comments

Comments
 (0)