Skip to content

Commit 9f07b8b

Browse files
arxeissgrogy
authored andcommitted
Fix doc
1 parent 4838574 commit 9f07b8b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/syntax-error-callback.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
1. Create a class implementing `JakubOnderka\PhpParallelLint\Contracts\SyntaxErrorCallback` interface. File with the class must have the same name as the class inside.
55
1. Modify error before it is printed to the output.
66

7-
## Configuration
7+
## Example configuration
88

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>
1010
The content should look like:
1111

1212
```php
@@ -21,7 +21,7 @@ class MyCustomErrorHandler implements SyntaxErrorCallback {
2121
*/
2222
public function errorFound(SyntaxError $error){
2323
// 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...
2525
return new SyntaxError(
2626
$error->getFilePath(),
2727
$error->getMessage()

0 commit comments

Comments
 (0)