Assert the project language and type are valid
This commit is contained in:
parent
d541f064a5
commit
e499d42fa5
6 changed files with 54 additions and 0 deletions
|
@ -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)),
|
||||
|
|
Reference in a new issue