Skip to content

Commit acaeb2f

Browse files
committed
Have upstream routes return an array, not iterable, so that it's indexable by url like routes() is.
1 parent 922d59e commit acaeb2f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/Config.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -334,10 +334,10 @@ public function getPrimaryRoute() : array
334334
*
335335
* @param string|null $appName
336336
* The name of the upstream app on which to filter, if any.
337-
* @return iterable
338-
* An iterable of route definitions.
337+
* @return array
338+
* An array of route definitions.
339339
*/
340-
public function getUpstreamRoutes(string $appName = null) : iterable
340+
public function getUpstreamRoutes(string $appName = null) : array
341341
{
342342
return array_filter($this->routes(), function (array $route) use ($appName) {
343343
return $route['type'] == 'upstream'

0 commit comments

Comments
 (0)