Skip to content

Commit

Permalink
minor #49743 [RemoteEvent] Add readonly modifier where this possible …
Browse files Browse the repository at this point in the history
…(onEXHovia)

This PR was merged into the 6.3 branch.

Discussion
----------

[RemoteEvent] Add readonly modifier where this possible

| Q             | A
| ------------- | ---
| Branch?       | 6.3
| Bug fix?      | no
| New feature?  | yes
| Deprecations? | no
| Tickets       | n/a
| License       | MIT
| Doc PR        | n/a

Commits
-------

fecf5ec [RemoteEvent] Add readonly modifier where this possible
  • Loading branch information
nicolas-grekas committed Mar 20, 2023
2 parents 8b8045b + fecf5ec commit 36ae25d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
class ConsumeRemoteEventMessage
{
public function __construct(
private string $type,
private RemoteEvent $event,
private readonly string $type,
private readonly RemoteEvent $event,
) {
}

Expand Down
6 changes: 3 additions & 3 deletions src/Symfony/Component/RemoteEvent/RemoteEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
class RemoteEvent
{
public function __construct(
private string $name,
private string $id,
private array $payload,
private readonly string $name,
private readonly string $id,
private readonly array $payload,
) {
}

Expand Down

0 comments on commit 36ae25d

Please sign in to comment.