comet
comet copied to clipboard
Wrong sample: Expecting string in sample code, but int given
trafficstars
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);
Не знаю, стоило ли создавать новый issue ради этого...
Should be fixed now