You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/syntax-error-callback.md
+3-3
Original file line number
Diff line number
Diff line change
@@ -4,9 +4,9 @@
4
4
1. Create a class implementing `JakubOnderka\PhpParallelLint\Contracts\SyntaxErrorCallback` interface. File with the class must have the same name as the class inside.
5
5
1. Modify error before it is printed to the output.
6
6
7
-
## Configuration
7
+
## Example configuration
8
8
9
-
File `MyCustomErrorHandler.php` will be passed as an argument like `./parallel-lint --syntax-error-callback ./path/to/MyCustomErrorHandler.php .`.
9
+
File `MyCustomErrorHandler.php` will be passed as an argument like `./parallel-lint --syntax-error-callback ./path/to/MyCustomErrorHandler.php .`.<br>
10
10
The content should look like:
11
11
12
12
```php
@@ -21,7 +21,7 @@ class MyCustomErrorHandler implements SyntaxErrorCallback {
21
21
*/
22
22
public function errorFound(SyntaxError $error){
23
23
// Return new SyntaxError with custom modification to FilePath or Message
24
-
// Or return completely new SyntaxError extending the original one...
24
+
// Or return custom implementation of SyntaxError extending the original one...
0 commit comments