You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have tried to launch controller sample and caught that error: .....\vendor\gotzmann\comet\src\Stream.php:250 >> fwrite(): Argument #2 ($data) must be of type string, int given
It's very dumb, cause the exception accurs because of that line from sample: $response->getBody()->write(self::$counter);
And can be solved by: $response->getBody()->write((string)self::$counter);
The text was updated successfully, but these errors were encountered:
fugikzl
changed the title
Expecting string in sample code, but int given
Wrong sample: Expecting string in sample code, but int given
May 14, 2023
I have tried to launch controller sample and caught that error:
.....\vendor\gotzmann\comet\src\Stream.php:250 >> fwrite(): Argument #2 ($data) must be of type string, int given
It's very dumb, cause the exception accurs because of that line from sample:
$response->getBody()->write(self::$counter);
And can be solved by:
$response->getBody()->write((string)self::$counter);
The text was updated successfully, but these errors were encountered: