Fix a type juggling issue take 2

This commit is contained in:
Timothy Warren 2020-04-23 17:00:35 -04:00
parent 15de3b8dde
commit 519b39e75e

View File

@ -308,8 +308,11 @@ abstract class AbstractDriver
return array_map([$this, __METHOD__], $identifier);
}
// Make all the string-handling methods happy
$identifier = (string)$identifier;
// Handle comma-separated identifiers
if (is_string($identifier) && strpos($identifier, ',') !== FALSE)
if (strpos($identifier, ',') !== FALSE)
{
$parts = array_map('mb_trim', explode(',', $identifier));
$parts = array_map([$this, __METHOD__], $parts);