Przeglądaj źródła

fixed getter call for properties with uppercase letters

Robert Gruendler 13 lat temu
rodzic
commit
916ef90cb2
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      lib/Gedmo/Translator/TranslationProxy.php

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

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