Skip to content

Commit d2ea064

Browse files
committed
Add documentation
Since it is not very clear how isEmpty() works, I added a short note to clarify that it returns true if one of the supplied variables is empty (instead of all of them).
1 parent cc6ad93 commit d2ea064

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/functions.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,13 @@ function getDirectory(string $path, int $position): ?string
133133
return $dirs[$position + 1] ?? null;
134134
}
135135

136+
/**
137+
* Determine whether at least one of the supplied variables is empty.
138+
*
139+
* @param mixed ...$values The values to check.
140+
*
141+
* @return boolean
142+
*/
136143
function isEmpty(mixed ...$values): bool
137144
{
138145
$skipValues = array(

0 commit comments

Comments
 (0)