Skip to content

Commit efcd47e

Browse files
committed
replaced is_string with is_scalar
1 parent e5e66aa commit efcd47e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Dataplater.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,6 @@ private function importTagChildren(DOMDocument $doc, string $tag, callable $forE
280280

281281
private function isString(mixed $value): bool
282282
{
283-
return is_string($value) || (is_object($value) && method_exists($value, '__toString'));
283+
return is_scalar($value) || (is_object($value) && method_exists($value, '__toString'));
284284
}
285285
}

0 commit comments

Comments
 (0)