Skip to content

Commit 3fe72c0

Browse files
committed
makeCompareUrl() to handle sources with no url
1 parent 8b23454 commit 3fe72c0

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -101,4 +101,5 @@ Thanks to everyone who has shared ideas and code! In particular,
101101
- https://github.com/paxal
102102
- https://github.com/nclavaud
103103
- https://github.com/cafferata
104+
- https://github.com/ihor-sviziev
104105

composer-lock-diff

+1-1
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ function mustDecodeJson($json, $context) {
182182
}
183183

184184
function makeCompareUrl($pkg, $diff) {
185-
$func = 'formatCompare' . ucfirst(getSourceRepoType($pkg->source->url));
185+
$func = 'formatCompare' . ucfirst(getSourceRepoType((string) @$pkg->source->url));
186186
return call_user_func($func, $pkg->source->url, $diff[$pkg->name][0], $diff[$pkg->name][1]);
187187
}
188188

0 commit comments

Comments
 (0)