I’m getting the following error while using PrismPHP streaming:
ErrorException: ob_flush(): Failed to flush buffer. No buffer to flush
in vendor/prism-php/prism/src/Streaming/Adapters/DataProtocolAdapter.php:38
Environment:
- Laravel 12
- PHP 8.4
- Nginx + PHP-FPM
The error happens because DataProtocolAdapter calls ob_flush() even when no output buffer is active.