1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-27 04:45:20 +01:00

Remove quotes if they’re present

This commit is contained in:
Matthew Brown 2019-03-31 20:55:48 -04:00
parent d421d91a2a
commit 601ff4f0a9

View File

@ -77,6 +77,11 @@ class GitInfoCollector
throw new \RuntimeException();
}
if ($commitResult[0] === '\'') {
$commitResult[0] = substr($commitResult[0], 1);
$commitResult[5] = substr($commitResult[5], 0, -1);
}
$commit = new CommitInfo();
return $commit