Skip to content

Commit 94c0137

Browse files
committed
build: debug build
1 parent abfa4da commit 94c0137

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Php.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,6 @@ public function checkFile(string $file): array
114114
\preg_match('/ on line ([0-9]+)$/', $result['output'], $matchLine);
115115
$line = isset($matchLine[1]) ? (int) ($matchLine[1]) : null;
116116

117-
\var_dump($fullMessage);
118117
[$type, $message] = \explode(': ', $fullMessage);
119118

120119
return [
@@ -158,7 +157,7 @@ protected function convertMessage(string $message): string
158157

159158
protected function execute(string $file): array
160159
{
161-
$process = new Process([$this->getCli(), '-l', $file]);
160+
$process = new Process([$this->getCli(), '-l -d display_errors=stdout', $file]);
162161
$process->run();
163162

164163
if ($process->isSuccessful()) {
@@ -169,6 +168,7 @@ protected function execute(string $file): array
169168
}
170169

171170
$output = $process->getOutput();
171+
\var_dump($output);
172172
if (!$output) {
173173
throw new \Exception('Could not check syntax', $process->getExitCode() ?: 0);
174174
}

0 commit comments

Comments
 (0)