@@ -64,7 +64,7 @@ class GitProcessor implements ProcessorInterface
return self::$cache;
}
- $branches = `git branch -v --no-abbrev`;
+ $branches = shell_exec('git branch -v --no-abbrev');
if ($branches && preg_match('{^\* (.+?)\s+([a-f0-9]{40})(?:\s|$)}m', $branches, $matches)) {
return self::$cache = [
'branch' => $matches[1],
@@ -63,7 +63,7 @@ class MercurialProcessor implements ProcessorInterface
- $result = explode(' ', trim(`hg id -nb`));
+ $result = explode(' ', trim((string) shell_exec('hg id -nb')));
if (count($result) >= 3) {
@@ -31,7 +31,7 @@ class MercurialProcessorTest extends TestCase
return;
- `hg init`;
+ shell_exec('hg init');
$processor = new MercurialProcessor();
$record = $processor($this->getRecord());