Skip to content

Commit 35159c4

Browse files
committed
Warning in error message casting (when numeric value present) - Fixed
1 parent f5b13b8 commit 35159c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/ShopifyResource.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ protected function wrapData($dataArray, $dataKey = null)
446446
*/
447447
protected function castString($array)
448448
{
449-
if (is_string($array)) return $array;
449+
if ( ! is_array($array)) return (string) $array;
450450

451451
$string = '';
452452
$i = 0;

0 commit comments

Comments
 (0)