gotzmann / comet

Modern PHP framework for building blazing fast REST APIs and microservices
MIT License
661 stars 52 forks source link

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

Closed fugikzl closed 5 months ago

fugikzl commented 1 year ago

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 commented 1 year ago

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

gotzmann commented 5 months ago

Should be fixed now