File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -15,17 +15,17 @@ use JakubOnderka\PhpParallelLint\Contracts\SyntaxErrorCallback;
1515use JakubOnderka\PhpParallelLint\SyntaxError;
1616
1717class MyCustomErrorHandler implements SyntaxErrorCallback {
18- /**
18+ /**
1919 * @param SyntaxError $error
2020 * @return SyntaxError
2121 */
2222 public function errorFound(SyntaxError $error){
23- // Return new SyntaxError with custom modification to FilePath or Message
24- // Or return custom implementation of SyntaxError extending the original one...
25- return new SyntaxError(
26- $error->getFilePath(),
27- $error->getMessage()
28- );
23+ // Return new SyntaxError with custom modification to FilePath or Message
24+ // Or return custom implementation of SyntaxError extending the original one...
25+ return new SyntaxError(
26+ $error->getFilePath(),
27+ $error->getMessage()
28+ );
2929 }
3030}
3131```
You can’t perform that action at this time.
0 commit comments