1
0
Fork 0

Allow init without license (#12145)

pull/12148/head
Antal Áron 2024-10-03 16:19:38 +02:00 committed by GitHub
parent ad3bfb87fd
commit 66bf6d31c3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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) && $license !== 'proprietary') { if (null !== $license && !$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);