I don't think it is a good idea to override the PHP version in the composer.json using config.platform: https://github.com/shopware/production/blob/6.4/composer.json#L8
This way, the composer installation will succeed with PHP 7.2 which otherwise would immediately fail as PHP 7.4 is required. Also it might install wrong dependencies (at least without a lock file).