From 601ff4f0a9c7f16885abb94d2b73c44e1a22fd34 Mon Sep 17 00:00:00 2001 From: Matthew Brown Date: Sun, 31 Mar 2019 20:55:48 -0400 Subject: [PATCH] =?UTF-8?q?Remove=20quotes=20if=20they=E2=80=99re=20presen?= =?UTF-8?q?t?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Psalm/Internal/ExecutionEnvironment/GitInfoCollector.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Psalm/Internal/ExecutionEnvironment/GitInfoCollector.php b/src/Psalm/Internal/ExecutionEnvironment/GitInfoCollector.php index 320fc498a..5c3834249 100644 --- a/src/Psalm/Internal/ExecutionEnvironment/GitInfoCollector.php +++ b/src/Psalm/Internal/ExecutionEnvironment/GitInfoCollector.php @@ -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