Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Revert to returning false on cache miss.
  • Loading branch information
ADmad committed Sep 2, 2014
1 parent 7ba6162 commit 325c6ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Utility/Inflector.php
Expand Up @@ -428,7 +428,7 @@ protected static function _cache($type, $key, $value = false) {
return $value;
}
if (!isset(static::$_cache[$type][$key])) {
return null;
return false;
}
return static::$_cache[$type][$key];
}
Expand Down Expand Up @@ -606,7 +606,7 @@ public static function underscore($camelCasedWord) {
*/
public static function dasherize($wordGroup) {
$result = static::_cache(__FUNCTION__, $wordGroup);
if ($result !== null) {
if ($result !== false) {
return $result;
}

Expand Down

0 comments on commit 325c6ee

Please sign in to comment.