Skip to content

Commit

Permalink
Merge pull request #78 from alexanderfrodeberg/patch-1
Browse files Browse the repository at this point in the history
Change to double-quoted string
  • Loading branch information
Sammyjo20 authored Jan 24, 2024
2 parents 7399124 + 9535b6f commit e11942a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Helpers/Git.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class Git
public static function getCommitHash(): ? string
{
try {
$branch = str_replace('\n', '', last(explode('/', (string)file_get_contents(base_path() . '/.git/HEAD'))));
$branch = str_replace("\n", '', last(explode('/', (string)file_get_contents(base_path() . '/.git/HEAD'))));
$hash = file_get_contents(base_path() . '/.git/refs/heads/' . $branch);
} catch (Exception $exception) {
throw new GitHashException($exception->getMessage(), previous: $exception);
Expand Down

0 comments on commit e11942a

Please sign in to comment.