Skip to content
Permalink
Browse files

Revert to returning false on cache miss.

  • Loading branch information...
ADmad committed Sep 2, 2014
1 parent 7ba6162 commit 325c6ee1251e3f528f463b84a1170898fb9c4f96
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/Utility/Inflector.php
@@ -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];
}
@@ -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;
}

0 comments on commit 325c6ee

Please sign in to comment.
You can’t perform that action at this time.