Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit b5c2cf4

Browse files
committed
chore: custom rule documentation fixes
1 parent 189d446 commit b5c2cf4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/04-custom-rules.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@ class CustomRule extends AbstractRule implements RuleInterface
3939
...and finally, you need to throw your custom exception when your validation fails, so it looks something like the following:
4040

4141
```php
42-
namespace My\Project\Rules;
42+
namespace My\Project\Rule;
4343

44-
use My\Project\Exception\CustomRuleException;
4544
use ProgrammatorDev\YetAnotherPhpValidator\Rule\AbstractRule;
4645
use ProgrammatorDev\YetAnotherPhpValidator\Rule\RuleInterface;
46+
use My\Project\Exception\CustomRuleException;
4747

4848
class CustomRule extends AbstractRule implements RuleInterface
4949
{

0 commit comments

Comments
 (0)