Skip to content

Commit adfc4bf

Browse files
committed
Clean up readme
Refs #353
1 parent eb0d790 commit adfc4bf

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -237,11 +237,6 @@ assertion only if the value is not `null`:
237237
Assert::nullOrString($middleName, 'The middle name must be a string or null. Got: %s');
238238
```
239239

240-
### Extending Assert
241-
242-
The `Assert` class comes with a few methods, which can be overridden to change the class behaviour. You can also extend it to
243-
add your own assertions.
244-
245240
### Lazy assertion messages
246241

247242
Assertion messages can be provided as callables to avoid unnecessary computation when the assertion passes:
@@ -252,6 +247,12 @@ Assert::string($value, fn() => expensiveMessage());
252247

253248
The callable will only be executed if the assertion fails.
254249

250+
### Extending Assert
251+
252+
The `Assert` class comes with a few methods, which can be overridden to change the class behaviour. You can also extend it to
253+
add your own assertions.
254+
255+
255256
#### Overriding methods
256257

257258
Overriding the following methods in your assertion class allows you to change the behaviour of the assertions:

0 commit comments

Comments
 (0)