fixed regex (we don't need '?')
This commit is contained in:
parent
28121e4a57
commit
a83046f470
@ -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]);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user