Fatal error: Uncaught TypeError: Platformsh\Cli\Selector\Selector::selectRemoteContainer(): Argument #1 ($environment) must be of type Platformsh\Client\Model\Environment, null given, called in phar:///Users/duncan/Library/Caches/upsun-tmp/legacy-5.10.3/upsun.phar/src/Selector/Selector.php on line 196 and defined in phar:///Users/duncan/Library/Caches/upsun-tmp/legacy-5.10.3/upsun.phar/src/Selector/Selector.php:707
Stack trace:
#0 phar:///Users/duncan/Library/Caches/upsun-tmp/legacy-5.10.3/upsun.phar/src/Selector/Selector.php(196): Platformsh\Cli\Selector\Selector->selectRemoteContainer(NULL, Object(Symfony\Component\Console\Input\ArgvInput), NULL)
#1 phar:///Users/duncan/Library/Caches/upsun-tmp/legacy-5.10.3/upsun.phar/src/Command/Db/DbDumpCommand.php(65): Platformsh\Cli\Selector\Selector->getSelection(Object(Symfony\Component\Console\Input\ArgvInput), Object(Platformsh\Cli\Selector\SelectorConfig))
#2 phar:///Users/duncan/Library/Caches/upsun-tmp/legacy-5.10.3/upsun.phar/vendor/symfony/console/Command/Command.php(341): Platformsh\Cli\Command\Db\DbDumpCommand->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#3 phar:///Users/duncan/Library/Caches/upsun-tmp/legacy-5.10.3/upsun.phar/vendor/symfony/console/Application.php(1117): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#4 phar:///Users/duncan/Library/Caches/upsun-tmp/legacy-5.10.3/upsun.phar/src/Application.php(397): Symfony\Component\Console\Application->doRunCommand(Object(Platformsh\Cli\Command\Db\DbDumpCommand), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#5 phar:///Users/duncan/Library/Caches/upsun-tmp/legacy-5.10.3/upsun.phar/vendor/symfony/console/Application.php(356): Platformsh\Cli\Application->doRunCommand(Object(Platformsh\Cli\Command\Db\DbDumpCommand), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#6 phar:///Users/duncan/Library/Caches/upsun-tmp/legacy-5.10.3/upsun.phar/vendor/symfony/console/Application.php(195): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#7 phar:///Users/duncan/Library/Caches/upsun-tmp/legacy-5.10.3/upsun.phar/bin/platform(32): Symfony\Component\Console\Application->run()
#8 /Users/duncan/Library/Caches/upsun-tmp/legacy-5.10.3/upsun.phar(4): require('phar:///Users/d...')
#9 {main}
thrown in phar:///Users/duncan/Library/Caches/upsun-tmp/legacy-5.10.3/upsun.phar/src/Selector/Selector.php on line 707
After running
upsun db:dumpand selecting my project, I get this fatal error: