Skip to content

Commit

Permalink
Refactor code
Browse files Browse the repository at this point in the history
  • Loading branch information
slavarazum authored and github-actions[bot] committed Dec 14, 2023
1 parent 15ba9ad commit 150314c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Sse/ServerSentEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public function __invoke()
{
echo $this;

if (ob_get_level()) {
if (ob_get_level() !== 0) {
ob_flush();
}

Expand Down

0 comments on commit 150314c

Please sign in to comment.