You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The README only showed a single example but did not document which
Assert methods the extension actually supports. Add a concise
categorized list of all supported assertions derived from the source
code, including the nullOr*, all*, allNullOr*, and allNot* prefixes.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: README.md
+34Lines changed: 34 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,6 +26,40 @@ function demo(?int $a) {
26
26
}
27
27
```
28
28
29
+
## Supported assertions
30
+
31
+
This extension understands the following `Assert::*` methods and narrows types accordingly.
32
+
33
+
All assertions also work with the `nullOr*()`, `all*()`, and `allNullOr*()` prefixes (e.g. `Assert::nullOrString()`, `Assert::allInteger()`, `Assert::allNullOrNotEmpty()`).
0 commit comments