@@ -135,7 +135,7 @@ public function testFlushSetsRouteNames()
135
135
$ collectionBuilder ->add ('/admin ' , 'AppBundle:Admin:dashboard ' , 'admin_dashboard ' );
136
136
// add an unnamed route
137
137
$ collectionBuilder ->add ('/blogs ' , 'AppBundle:Blog:list ' )
138
- ->setMethods ('GET ' );
138
+ ->setMethods (array ( 'GET ' ) );
139
139
140
140
// integer route names are allowed - they don't confuse things
141
141
$ collectionBuilder ->add ('/products ' , 'AppBundle:Product:list ' , 100 );
@@ -165,8 +165,8 @@ public function testFlushSetsDetailsOnChildrenRoutes()
165
165
->setOption ('fooBar ' , true )
166
166
->setHost ('example.com ' )
167
167
->setCondition ('request.isSecure() ' )
168
- ->setSchemes ('https ' )
169
- ->setMethods ('POST ' );
168
+ ->setSchemes (array ( 'https ' ) )
169
+ ->setMethods (array ( 'POST ' ) );
170
170
171
171
// a simple route, nothing added to it
172
172
$ routes ->add ('/blogs/{id} ' , 'editAction ' , 'blog_edit ' );
@@ -183,7 +183,7 @@ public function testFlushSetsDetailsOnChildrenRoutes()
183
183
->setDefault ('_locale ' , 'fr ' )
184
184
->setRequirement ('_locale ' , 'fr|en ' )
185
185
->setOption ('niceRoute ' , true )
186
- ->setSchemes ('http ' )
186
+ ->setSchemes (array ( 'http ' ) )
187
187
->setMethods (array ('GET ' , 'POST ' ));
188
188
189
189
$ collection = $ routes ->build ();
0 commit comments