Skip to content

Commit 945cd6b

Browse files
committed
add readonly to properties
1 parent 536f8d0 commit 945cd6b

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/Decoder/XmlTypeDecoder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
final class XmlTypeDecoder implements TypeDecoderInterface
88
{
9-
private JsonxTypeDecoder $jsonxTypeDecoder;
9+
private readonly JsonxTypeDecoder $jsonxTypeDecoder;
1010

1111
public function __construct()
1212
{

src/Encoder/JsonTypeEncoder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
final class JsonTypeEncoder implements TypeEncoderInterface
88
{
9-
public function __construct(private bool $prettyPrint = false) {}
9+
public function __construct(private readonly bool $prettyPrint = false) {}
1010

1111
public function getContentType(): string
1212
{

src/Encoder/JsonxTypeEncoder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ final class JsonxTypeEncoder implements TypeEncoderInterface
1616
public const string DATATYPE_NUMBER = 'number';
1717
public const string DATATYPE_NULL = 'null';
1818

19-
public function __construct(private bool $prettyPrint = false) {}
19+
public function __construct(private readonly bool $prettyPrint = false) {}
2020

2121
public function getContentType(): string
2222
{

src/Encoder/XmlTypeEncoder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
final class XmlTypeEncoder implements TypeEncoderInterface
88
{
9-
private JsonxTypeEncoder $jsonxTypeEncoder;
9+
private readonly JsonxTypeEncoder $jsonxTypeEncoder;
1010

1111
public function __construct(bool $prettyPrint = false)
1212
{

0 commit comments

Comments
 (0)