CommandTransport: Make sure to reset the config before calling current()

This commit is contained in:
Johannes Meyer 2015-05-22 14:01:11 +02:00
parent 265725447d
commit 59ff4221f6
1 changed files with 3 additions and 2 deletions

View File

@ -108,7 +108,8 @@ abstract class CommandTransport
*/
public static function first()
{
$config = self::getConfig()->current();
return self::fromConfig($config);
$config = self::getConfig();
$config->rewind();
return self::fromConfig($config->current());
}
}