comet icon indicating copy to clipboard operation
comet copied to clipboard

Wrong sample: Expecting string in sample code, but int given

Open fugikzl opened this issue 2 years ago • 1 comments
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);

fugikzl avatar May 14 '23 17:05 fugikzl

Не знаю, стоило ли создавать новый issue ради этого...

fugikzl avatar May 14 '23 17:05 fugikzl

Should be fixed now

gotzmann avatar Jun 19 '24 12:06 gotzmann