File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments