fixed potential error
parent
1cca62dc97
commit
d5ba884f8b
|
@ -43,7 +43,11 @@ class FilesystemRepository extends ArrayRepository implements WritableRepository
|
|||
{
|
||||
parent::initialize();
|
||||
|
||||
$packages = null;
|
||||
if ($this->file->exists()) {
|
||||
$packages = $this->file->read();
|
||||
}
|
||||
|
||||
if (is_array($packages)) {
|
||||
$loader = new ArrayLoader();
|
||||
foreach ($packages as $package) {
|
||||
|
|
Loading…
Reference in New Issue