Skip to content

Commit

Permalink
readonly classes are a php8.2 feature, not php8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
m50 committed Mar 11, 2024
1 parent 7866584 commit bdc08e7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Event.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
use Amp\Websocket\WebsocketMessage;
use JsonSerializable;

final readonly class Event implements JsonSerializable
final class Event implements JsonSerializable
{
public function __construct(
public string $event,
public array $data = [],
public string $channel = ''
public readonly string $event,
public readonly array $data = [],
public readonly string $channel = ''
) {
}

Expand Down

0 comments on commit bdc08e7

Please sign in to comment.