Fresh checkout of REL1_38 without having run composer update, but using the REL1_38 branch of vendor gives the following when running php maintenance/update.php --quick:
$ php maintenance/update.php --quick PHP Fatal error: Uncaught Error: Class "Symfony\Component\Yaml\Yaml" not found in .../includes/Settings/Source/Format/YamlFormat.php:103 Stack trace: #0 .../includes/Settings/Source/Format/YamlFormat.php(63): MediaWiki\Settings\Source\Format\YamlFormat->parseWithSymfony() #1 .../includes/Settings/Source/Format/YamlFormat.php(30): MediaWiki\Settings\Source\Format\YamlFormat->parseWith() #2 .../includes/Settings/Source/FileSource.php(213): MediaWiki\Settings\Source\Format\YamlFormat->decode() #3 .../includes/Settings/Source/FileSource.php(121): MediaWiki\Settings\Source\FileSource->readAndDecode() #4 .../includes/Settings/SettingsBuilder.php(265): MediaWiki\Settings\Source\FileSource->load() #5 .../includes/Settings/SettingsBuilder.php(231): MediaWiki\Settings\SettingsBuilder->loadRecursive() #6 .../includes/Setup.php(212): MediaWiki\Settings\SettingsBuilder->apply() #7 .../maintenance/doMaintenance.php(96): require_once('...') #8 .../maintenance/update.php(264): require_once('...') #9 {main} thrown in .../includes/Settings/Source/Format/YamlFormat.php on line 103