File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -237,11 +237,6 @@ assertion only if the value is not `null`:
237237Assert::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
247242Assertion messages can be provided as callables to avoid unnecessary computation when the assertion passes:
@@ -252,6 +247,12 @@ Assert::string($value, fn() => expensiveMessage());
252247
253248The 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
257258Overriding the following methods in your assertion class allows you to change the behaviour of the assertions:
You can’t perform that action at this time.
0 commit comments