//* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('SEARCH-CRITERIA: key=%s,value[]=%s,separator=%s - CALLED!', $key, gettype($value), $separator));
if (empty($key)) {
// Throw IAE
- throw new InvalidArgumentException('Parameter "key" cannot be empty');
+ throw new InvalidArgumentException('Parameter "key" is empty');
} elseif (is_array($value) || is_bool($value) || is_bool($value) || is_object($value) || is_resource($value)) {
// Throw it again
throw new InvalidArgumentException(sprintf('value[]=%s is not supported/valid', gettype($value)));
} elseif (empty($separator)) {
// Throw IAE
- throw new InvalidArgumentException('Parameter "separator" cannot be empty');
+ throw new InvalidArgumentException('Parameter "separator" is empty');
}
// "Explode" value