diff --git a/src/SpdxLicenses.php b/src/SpdxLicenses.php index 9f9b322b..7b94b24e 100644 --- a/src/SpdxLicenses.php +++ b/src/SpdxLicenses.php @@ -309,10 +309,10 @@ private function isValidLicenseString($license) (?[\pL\pN.-]{1,}) # license-id: taken from list - (?${licenses}) + (?{$licenses}) # license-exception-id: taken from list - (?${exceptions}) + (?{$exceptions}) # license-ref: [DocumentRef-1*(idstring):]LicenseRef-1*(idstring) (?(?:DocumentRef-(?&idstring):)?LicenseRef-(?&idstring))