From 519b39e75e2b005c04d3d04ede2e5ee9d18f794f Mon Sep 17 00:00:00 2001 From: Timothy J Warren Date: Thu, 23 Apr 2020 17:00:35 -0400 Subject: [PATCH] Fix a type juggling issue take 2 --- src/Drivers/AbstractDriver.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Drivers/AbstractDriver.php b/src/Drivers/AbstractDriver.php index f004fa5..4aaec7c 100644 --- a/src/Drivers/AbstractDriver.php +++ b/src/Drivers/AbstractDriver.php @@ -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);