Skip to content

Commit

Permalink
Apply Rector changes (CI)
Browse files Browse the repository at this point in the history
  • Loading branch information
xepozz authored and github-actions[bot] committed Jun 9, 2023
1 parent e80d96c commit efc7916
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Controller/DebugController.php
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ public function eventStream(
// TODO implement OS signal handling
$compareFunction = function () use ($storage) {
$read = $storage->read(StorageInterface::TYPE_SUMMARY);
return md5(json_encode($read));
return md5(json_encode($read, JSON_THROW_ON_ERROR));
};
$hash = $compareFunction();
$maxRetries = 10;
Expand Down
4 changes: 2 additions & 2 deletions src/ServerSentEventsStream.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use Closure;
use Psr\Http\Message\StreamInterface;

final class ServerSentEventsStream implements StreamInterface
final class ServerSentEventsStream implements StreamInterface, \Stringable
{
public array $buffer = [];
private bool $eof = false;
Expand All @@ -17,7 +17,7 @@ public function __construct(
) {
}

public function __toString()
public function __toString(): string
{
return '';
}
Expand Down

0 comments on commit efc7916

Please # to comment.