Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
While trying to be type correct, coercing the value to string has the unintended side effect of allowing regexes (or any other type) as $regex arg. So instead now throwing an explciit error for that case. Also reverted the type where it returns an Array. Apparently there are cases where it is not an array.
- Loading branch information