Skip to content

Commit a6731ce

Browse files
committed
Added explanations regarding changes.
1 parent 397a2f3 commit a6731ce

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

UPGRADE.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,14 @@ PHP version
1111
Verify function
1212
-------
1313

14+
In version `2.x` the `verifiers` are classes. Each verifier handles a specific type of data.
15+
16+
Thanks to this you can enjoy an autocompletion of your `IDE` much more intelligent than before...
17+
18+
That is why **we have deleted verifiers as global functions** and we have used a new class-based syntax.
19+
20+
According to the above:
21+
1422
* `Verify` no longer receives a `string $message` as a parameter, now each _**verifier**_ fulfills this function.
1523
* `verify_that` was deleted. Use `VerifyThat` instead.
1624
* `verify_not` was deleted. Use `Verify()->empty` instead.

0 commit comments

Comments
 (0)