1
0
Fork 0

Fix init command to accept proprietary as license

pull/12143/head
Jordi Boggiano 2024-10-02 16:21:16 +02:00
parent 57e9795455
commit c6271f1f7f
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -400,7 +400,7 @@ EOT
$license $license
); );
$spdx = new SpdxLicenses(); $spdx = new SpdxLicenses();
if (!$spdx->validate($license)) { if (!$spdx->validate($license) && $license !== 'proprietary') {
throw new \InvalidArgumentException('Invalid license provided: '.$license.'. Only SPDX license identifiers (https://spdx.org/licenses/) or "proprietary" are accepted.'); throw new \InvalidArgumentException('Invalid license provided: '.$license.'. Only SPDX license identifiers (https://spdx.org/licenses/) or "proprietary" are accepted.');
} }
$input->setOption('license', $license); $input->setOption('license', $license);