Allow empty input haystacks in MD_STD::stri_contains()

This commit is contained in:
Joshua Ramon Enslin 2022-01-09 22:20:05 +01:00
parent dc86540da2
commit c689f7568f
Signed by: jrenslin
GPG Key ID: 46016F84501B70AE

View File

@ -177,7 +177,7 @@ final class MD_STD {
/**
* Function checking if a string contains another in a case-insensitive way.
*
* @param non-empty-string $haystack String to check.
* @param string $haystack String to check.
* @param non-empty-string $needle Potential start of $haystack.
*
* @return boolean