Skip to content

Commit f5e84c5

Browse files
committed
[Translator] Mark $message and $messageLength as readonly
1 parent 2f13d73 commit f5e84c5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Translator/src/Intl/IntlMessageParser.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@
2222
*/
2323
class IntlMessageParser
2424
{
25-
private AbstractString $message;
25+
private readonly AbstractString $message;
2626
// Minor optimization, this avoid a lot of calls to `$this->message->length()`
27-
private int $messageLength;
27+
private readonly int $messageLength;
2828

2929
private Position $position;
3030
private bool $ignoreTag;

0 commit comments

Comments
 (0)