mirror of
https://github.com/retailcrm/graphql-php.git
synced 2024-11-25 14:26:08 +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()
|
||||
{
|
||||
$tmp = $this->toArray(true);
|
||||
return json_encode($tmp);
|
||||
return (string) json_encode($tmp);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user