Skip to content

Commit

Permalink
Merge pull request #92 from thathoff/fix-php-7.4
Browse files Browse the repository at this point in the history
fix: restore php 7.4 support
  • Loading branch information
thathoff committed Aug 10, 2022
2 parents 126e232 + 3711b7a commit 85d1c3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/KirbyGitHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ public function status() {
$hasRemote = false;
$diff = null;
foreach ($upstreamResponse as $key => $line) {
if (str_contains($line, 'branch.ab')) {
if (!empty($line) && strpos($line, 'branch.ab') !== false) {
$hasRemote = true;

preg_match('/\+\d+/', $line, $ahead);
Expand Down

0 comments on commit 85d1c3b

Please sign in to comment.