mirror of
https://github.com/retailcrm/graphql-php.git
synced 2024-11-29 08:26:02 +03:00
Merge pull request #318 from robbieaverill/patch-1
FIX Ensure that __toString return value is always casted as a string
This commit is contained in:
commit
48b44fbdc5
@ -84,7 +84,7 @@ abstract class Node
|
|||||||
public function __toString()
|
public function __toString()
|
||||||
{
|
{
|
||||||
$tmp = $this->toArray(true);
|
$tmp = $this->toArray(true);
|
||||||
return json_encode($tmp);
|
return (string) json_encode($tmp);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user