Skip to content

Commit

Permalink
TODO: assert\required done
Browse files Browse the repository at this point in the history
  • Loading branch information
jm42 committed Feb 16, 2019
1 parent b6e0d84 commit 61f2daf
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions TODO.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,6 @@
TODO
====

- [ ] `assert\required`/`assert\extra` to use in `assert\dict`.

```php
$type = assert\dict(array(
'name' => assert\all(assert\required(), 'John'),
'name' => assert\required('John'),
));
```

- [ ] `asset\one` like `assert\any` but strict only one; or add a `$count`
parameter to `assert\any` to count the exact times that a validator was
success.
Expand Down

0 comments on commit 61f2daf

Please sign in to comment.