Commit 4b4ebd36 authored by Guillaume Perréal's avatar Guillaume Perréal
Browse files

Supprime l'exception de SPDXLicenseTemplateProvider::fetchTemplate.

No related merge requests found
Showing with 1 addition and 1 deletion
+1 -1
...@@ -52,7 +52,7 @@ final class SPDXLicenseTemplateProvider implements TemplateProviderInterface ...@@ -52,7 +52,7 @@ final class SPDXLicenseTemplateProvider implements TemplateProviderInterface
private function fetchTemplate(string $spdxId): ?string private function fetchTemplate(string $spdxId): ?string
{ {
$licenseJson = file_get_contents(sprintf($this->urlTemplate, $spdxId)); $licenseJson = @file_get_contents(sprintf($this->urlTemplate, $spdxId));
if ($licenseJson === false) { if ($licenseJson === false) {
return null; return null;
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment