From b2875178314a16276796fe6e307ca589f998a3d3 Mon Sep 17 00:00:00 2001 From: Roderik Muit Date: Tue, 11 Jun 2024 21:06:19 +0200 Subject: [PATCH] Fix PHP Warning: Undefined array key "sharedUrl" (#28) --- src/Commands/DiffCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Commands/DiffCommand.php b/src/Commands/DiffCommand.php index d5b1528..d812d5b 100644 --- a/src/Commands/DiffCommand.php +++ b/src/Commands/DiffCommand.php @@ -234,7 +234,7 @@ public function getDiffs(int $projectId, $page = 0) 'state' => Diff::getStateName($diff['state']), 'jobs' => $diff['status']['jobs'], 'estimate' => ($diff['status']['jobs'] > 0) ? $diff['status']['estimate'] : 'Finished', - 'sharedUrl' => $diff['sharedUrl'], + 'sharedUrl' => $diff['sharedUrl'] ?? NULL, ]; } }