Skip to content

Commit

Permalink
Update examples
Browse files Browse the repository at this point in the history
  • Loading branch information
odan committed Dec 7, 2020
1 parent e2d301c commit 257df4a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ A `ValidationResult` can be really simple:
```php
<?php

use Selective\Validation\ValidationException;
use Selective\Validation\Exception\ValidationException;
use Selective\Validation\ValidationResult;

$validationResult = new ValidationResult();
Expand All @@ -68,7 +68,7 @@ Login example:
```php
<?php

use Selective\Validation\ValidationException;
use Selective\Validation\Exception\ValidationException;
use Selective\Validation\ValidationResult;

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

```php
<?php
use Selective\Validation\ValidationResult;

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

0 comments on commit 257df4a

Please sign in to comment.