Skip to content

Commit 4021323

Browse files
authored
Merge pull request davidrjonas#22 from jibran/path-repo
Fixes repositories.type: path shows PHP Notice.
2 parents 817bb8f + fdbde0a commit 4021323

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

composer-lock-diff

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ function diff($key, $from, $to, $base_path) {
7171

7272
function version($pkg)
7373
{
74-
if(substr($pkg->version,0,4) == 'dev-') {
74+
if(substr($pkg->version,0,4) == 'dev-' && isset($pkg->source) && isset($pkg->source->reference)) {
7575
$version = substr($pkg->source->reference,0,7) ?: '';
7676
} else {
7777
$version = (string) $pkg->version;

0 commit comments

Comments
 (0)