Skip to content

Commit e11942a

Browse files
authored
Merge pull request #78 from alexanderfrodeberg/patch-1
Change to double-quoted string
2 parents 7399124 + 9535b6f commit e11942a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Helpers/Git.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class Git
2020
public static function getCommitHash(): ? string
2121
{
2222
try {
23-
$branch = str_replace('\n', '', last(explode('/', (string)file_get_contents(base_path() . '/.git/HEAD'))));
23+
$branch = str_replace("\n", '', last(explode('/', (string)file_get_contents(base_path() . '/.git/HEAD'))));
2424
$hash = file_get_contents(base_path() . '/.git/refs/heads/' . $branch);
2525
} catch (Exception $exception) {
2626
throw new GitHashException($exception->getMessage(), previous: $exception);

0 commit comments

Comments
 (0)