@@ -135,7 +135,7 @@ public function testFlushSetsRouteNames()
135135 $ collectionBuilder ->add ('/admin ' , 'AppBundle:Admin:dashboard ' , 'admin_dashboard ' );
136136 // add an unnamed route
137137 $ collectionBuilder ->add ('/blogs ' , 'AppBundle:Blog:list ' )
138- ->setMethods ('GET ' );
138+ ->setMethods (array ( 'GET ' ) );
139139
140140 // integer route names are allowed - they don't confuse things
141141 $ collectionBuilder ->add ('/products ' , 'AppBundle:Product:list ' , 100 );
@@ -165,8 +165,8 @@ public function testFlushSetsDetailsOnChildrenRoutes()
165165 ->setOption ('fooBar ' , true )
166166 ->setHost ('example.com ' )
167167 ->setCondition ('request.isSecure() ' )
168- ->setSchemes ('https ' )
169- ->setMethods ('POST ' );
168+ ->setSchemes (array ( 'https ' ) )
169+ ->setMethods (array ( 'POST ' ) );
170170
171171 // a simple route, nothing added to it
172172 $ routes ->add ('/blogs/{id} ' , 'editAction ' , 'blog_edit ' );
@@ -183,7 +183,7 @@ public function testFlushSetsDetailsOnChildrenRoutes()
183183 ->setDefault ('_locale ' , 'fr ' )
184184 ->setRequirement ('_locale ' , 'fr|en ' )
185185 ->setOption ('niceRoute ' , true )
186- ->setSchemes ('http ' )
186+ ->setSchemes (array ( 'http ' ) )
187187 ->setMethods (array ('GET ' , 'POST ' ));
188188
189189 $ collection = $ routes ->build ();
0 commit comments