Assert the project language and type are valid

This commit is contained in:
Oliver Davies 2024-02-28 10:35:41 +00:00
parent d541f064a5
commit e499d42fa5
6 changed files with 54 additions and 0 deletions

View file

@ -32,6 +32,11 @@ final class InstallCommand extends AbstractCommand
))->getLanguage();
}
assert(
assertion: ProjectLanguage::isValid($language),
description: sprintf('%s is not a supported language.', $language),
);
// TODO: Composer in Docker Compose?
$process = Process::create(
args: explode(separator: ' ', string: strval($args)),