Skip to content

Commit 257df4a

Browse files
committed
Update examples
1 parent e2d301c commit 257df4a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ A `ValidationResult` can be really simple:
4242
```php
4343
<?php
4444

45-
use Selective\Validation\ValidationException;
45+
use Selective\Validation\Exception\ValidationException;
4646
use Selective\Validation\ValidationResult;
4747

4848
$validationResult = new ValidationResult();
@@ -68,7 +68,7 @@ Login example:
6868
```php
6969
<?php
7070

71-
use Selective\Validation\ValidationException;
71+
use Selective\Validation\Exception\ValidationException;
7272
use Selective\Validation\ValidationResult;
7373

7474
// ...
@@ -102,6 +102,7 @@ because in PHP it's just an array from the request object.
102102

103103
```php
104104
<?php
105+
use Selective\Validation\ValidationResult;
105106

106107
// Fetch json data from request as array
107108
$jsonData = (array)$request->getParsedBody();

0 commit comments

Comments
 (0)