Library: Add missing shut-up operator to `file_get_contents` call

This commit is contained in:
Johannes Meyer 2021-06-16 11:57:00 +02:00
parent 7c4488ddc7
commit 81c0613e68
1 changed files with 1 additions and 1 deletions

View File

@ -189,7 +189,7 @@ class Library
protected function metaData() protected function metaData()
{ {
if ($this->metaData === null) { if ($this->metaData === null) {
$metaData = file_get_contents($this->path . DIRECTORY_SEPARATOR . 'composer.json'); $metaData = @file_get_contents($this->path . DIRECTORY_SEPARATOR . 'composer.json');
if ($metaData === false) { if ($metaData === false) {
throw new ConfigurationError('Library at "%s" is not a composerized project', $this->path); throw new ConfigurationError('Library at "%s" is not a composerized project', $this->path);
} }