We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 75a4c9d commit 7263babCopy full SHA for 7263bab
resources/lib/utils.php
@@ -22,7 +22,7 @@ function arrayGet($array, ...$keys)
22
}
23
24
// like assert() but not subject to zend.assertions config
25
-function ensure(bool $condition, str|null $message = null)
+function ensure(bool $condition, ?string $message = null)
26
{
27
if (!$condition) {
28
throw new EnsureException($message ?? "ensure condition is false");
0 commit comments