File tree 1 file changed +2
-2
lines changed
src/Symfony/Component/Form
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ private function resolveAndAddType(FormTypeInterface $type)
102
102
{
103
103
try {
104
104
if (isset ($ this ->checkedTypes [$ type ->getName ()])) {
105
- $ types = implode (' > ' , array_merge (array_keys ($ this ->checkedTypes ), [ $ type ->getName ()] ));
105
+ $ types = implode (' > ' , array_merge (array_keys ($ this ->checkedTypes ), array ( $ type ->getName ()) ));
106
106
throw new LogicException (sprintf ('Circular reference detected for form "%s" (%s). ' , $ type ->getName (), $ types ));
107
107
}
108
108
@@ -123,7 +123,7 @@ private function resolveAndAddType(FormTypeInterface $type)
123
123
throw new LogicException (sprintf ('Form "%s" cannot have itself as a parent. ' , $ type ->getName ()));
124
124
}
125
125
126
- $ typeExtensions = [] ;
126
+ $ typeExtensions = array () ;
127
127
128
128
foreach ($ this ->extensions as $ extension ) {
129
129
$ typeExtensions = array_merge (
You can’t perform that action at this time.
0 commit comments