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:
parent
d421d91a2a
commit
601ff4f0a9
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user