Explorar o código

fixed regex (we don't need '?')

Brikou CARRE %!s(int64=14) %!d(string=hai) anos
pai
achega
a83046f470
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/Symfony/Component/Form/Type/AbstractType.php

+ 1 - 1
src/Symfony/Component/Form/Type/AbstractType.php

@@ -47,7 +47,7 @@ abstract class AbstractType implements FormTypeInterface
 
     public function getName()
     {
-        if (preg_match('/\\\\([a-z]+)(?:Form|Type)?$/im', get_class($this), $matches)) {
+        if (preg_match('/\\\\([a-z]+)(?:Form|Type)$/im', get_class($this), $matches)) {
             $name = strtolower($matches[1]);
         }