Skip to content

Commit

Permalink
Fix PHP 8.2: ${var} deprecated string interpolation syntax on Git class
Browse files Browse the repository at this point in the history
Ref: af7338f

Signed-off-by: William Desportes <williamdes@wdes.fr>
  • Loading branch information
williamdes committed Jul 13, 2022
1 parent fd006f1 commit 0fb9f4c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion libraries/classes/Git.php
Expand Up @@ -394,7 +394,11 @@ private function extractDataFormTextBody(array $commit): array
$user2['date'] .= $user[4];
}

${$linetype} = $user2;
if ($linetype === 'author') {
$author = $user2;
} elseif ($linetype === 'committer') {
$committer = $user2;
}
} while ($dataline != '');

$message = trim(implode(' ', $commit));
Expand Down

0 comments on commit 0fb9f4c

Please sign in to comment.