Skip to content

Commit db46226

Browse files
Added protection from the loss of the key
1 parent 88e5502 commit db46226

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Plugins/Plugin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,6 @@ private function hasProjectName(): bool
6868
return false;
6969
}
7070

71-
return $this->vendor === InstalledVersions::getRootPackage()['name'];
71+
return $this->vendor === (InstalledVersions::getRootPackage()['name'] ?? false);
7272
}
7373
}

0 commit comments

Comments
 (0)