Browse Source

Merge pull request #8008 from ypnos-web/patch-1

Fix caching in camelize()
José Lorenzo Rodríguez 10 years ago
parent
commit
a023c2daf7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Utility/Inflector.php

+ 1 - 1
src/Utility/Inflector.php

@@ -587,7 +587,7 @@ class Inflector
 
         if ($result === false) {
             $result = str_replace(' ', '', static::humanize($string, $delimiter));
-            static::_cache(__FUNCTION__, $string, $result);
+            static::_cache($cacheKey, $string, $result);
         }
 
         return $result;