Explorar o código

fixed getter call for properties with uppercase letters

Robert Gruendler %!s(int64=13) %!d(string=hai) anos
pai
achega
916ef90cb2
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      lib/Gedmo/Translator/TranslationProxy.php

+ 1 - 1
lib/Gedmo/Translator/TranslationProxy.php

@@ -49,7 +49,7 @@ class TranslationProxy
     {
         $matches = array();
         if (preg_match('/^(set|get)(.*)$/', $method, $matches)) {
-            $property = strtolower($matches[2]);
+            $property = lcfirst($matches[2]);
 
             if (in_array($property, $this->properties)) {
                 switch ($matches[1]) {