File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -183,9 +183,9 @@ private function displayPackageInformation(Recipe $recipe)
183
183
}
184
184
185
185
$ io ->write ('<info>name</info> : ' .$ recipe ->getName ());
186
- $ io ->write ('<info>version</info> : ' .$ recipeLock ['version ' ]);
186
+ $ io ->write ('<info>version</info> : ' .( $ recipeLock ['version ' ] ?? ' n/a ' ) );
187
187
$ io ->write ('<info>status</info> : ' .$ status );
188
- if (!$ recipe ->isAuto ()) {
188
+ if (!$ recipe ->isAuto () && isset ( $ recipeLock [ ' version ' ]) ) {
189
189
$ recipeUrl = sprintf (
190
190
'https://%s/tree/%s/%s/%s ' ,
191
191
$ lockRepo ,
@@ -200,7 +200,9 @@ private function displayPackageInformation(Recipe $recipe)
200
200
201
201
if ($ lockRef !== $ recipe ->getRef ()) {
202
202
$ io ->write ('<info>latest recipe</info> : ' .$ recipe ->getURL ());
203
+ }
203
204
205
+ if ($ lockRef !== $ recipe ->getRef () && isset ($ recipeLock ['version ' ])) {
204
206
$ historyUrl = sprintf (
205
207
'https://%s/commits/%s/%s ' ,
206
208
$ lockRepo ,
You can’t perform that action at this time.
0 commit comments