Skip to content

Commit 5b1b693

Browse files
committed
No need to make the properties readonly
1 parent 5f15cf9 commit 5b1b693

File tree

7 files changed

+29
-29
lines changed

7 files changed

+29
-29
lines changed

‎src/FileId.php‎

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -41,64 +41,64 @@ public function __construct(
4141
* DC ID.
4242
*
4343
*/
44-
public readonly int $dcId,
44+
public int $dcId,
4545

4646
/**
4747
* File type.
4848
*
4949
*/
50-
public readonly FileIdType $type,
50+
public FileIdType $type,
5151

5252
/**
5353
* File id.
5454
*
5555
*/
56-
public readonly ?int $id,
56+
public ?int $id,
5757
/**
5858
* File access hash.
5959
*
6060
*/
61-
public readonly int $accessHash,
61+
public int $accessHash,
6262

6363
/**
6464
* Photo size source.
6565
*
6666
*/
67-
public readonly ?PhotoSizeSource $photoSizeSource = null,
67+
public ?PhotoSizeSource $photoSizeSource = null,
6868

6969
/**
7070
* Photo volume ID.
7171
*
7272
*/
73-
public readonly ?int $volumeId = null,
73+
public ?int $volumeId = null,
7474
/**
7575
* Photo local ID.
7676
*
7777
*/
78-
public readonly ?int $localId = null,
78+
public ?int $localId = null,
7979

8080
/**
8181
* File reference.
8282
*
8383
*/
84-
public readonly ?string $fileReference = null,
84+
public ?string $fileReference = null,
8585
/**
8686
* File URL for weblocation.
8787
*
8888
*/
89-
public readonly ?string $url = null,
89+
public ?string $url = null,
9090

9191
/**
9292
* Bot API file ID version.
9393
*
9494
*/
95-
public readonly int $version = 4,
95+
public int $version = 4,
9696

9797
/**
9898
* Bot API file ID subversion.
9999
*
100100
*/
101-
public readonly int $subVersion = 47,
101+
public int $subVersion = 47,
102102
) {
103103
}
104104

‎src/PhotoSizeSource/PhotoSizeSourceDialogPhoto.php‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@
2828
abstract class PhotoSizeSourceDialogPhoto extends PhotoSizeSource
2929
{
3030
public function __construct(
31-
public readonly int $dialogId,
32-
public readonly int $dialogAccessHash,
31+
public int $dialogId,
32+
public int $dialogAccessHash,
3333
) {
3434
}
3535
/**

‎src/PhotoSizeSource/PhotoSizeSourceLegacy.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
final class PhotoSizeSourceLegacy extends PhotoSizeSource
2929
{
3030
public function __construct(
31-
public readonly int $secret,
31+
public int $secret,
3232
) {
3333
}
3434
}

‎src/PhotoSizeSource/PhotoSizeSourceStickersetThumbnail.php‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,12 @@ public function __construct(
3232
* Stickerset ID.
3333
*
3434
*/
35-
public readonly int $stickerSetId,
35+
public int $stickerSetId,
3636
/**
3737
* Stickerset access hash.
3838
*
3939
*/
40-
public readonly int $stickerSetAccessHash
40+
public int $stickerSetAccessHash
4141
) {
4242

4343
}

‎src/PhotoSizeSource/PhotoSizeSourceStickersetThumbnailVersion.php‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,17 +32,17 @@ public function __construct(
3232
* Stickerset ID.
3333
*
3434
*/
35-
public readonly int $stickerSetId,
35+
public int $stickerSetId,
3636
/**
3737
* Stickerset access hash.
3838
*
3939
*/
40-
public readonly int $stickerSetAccessHash,
40+
public int $stickerSetAccessHash,
4141
/**
4242
* Stickerset version.
4343
*
4444
*/
45-
public readonly int $stickerSetVersion
45+
public int $stickerSetVersion
4646
) {
4747

4848
}

‎src/PhotoSizeSource/PhotoSizeSourceThumbnail.php‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,12 @@ public function __construct(
3333
* File type of original file.
3434
*
3535
*/
36-
public readonly FileIdType $thumbFileType,
36+
public FileIdType $thumbFileType,
3737
/**
3838
* Thumbnail size.
3939
*
4040
*/
41-
public readonly string $thumbType,
41+
public string $thumbType,
4242
) {
4343
}
4444
}

‎src/UniqueFileId.php‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,42 +37,42 @@ public function __construct(
3737
* File type.
3838
*
3939
*/
40-
public readonly UniqueFileIdType $type,
40+
public UniqueFileIdType $type,
4141
/**
4242
* File ID.
4343
*
4444
*/
45-
public readonly ?int $id = null,
45+
public ?int $id = null,
4646
/**
4747
* Photo subtype.
4848
*
4949
*/
50-
public readonly ?int $subType = null,
50+
public ?int $subType = null,
5151
/**
5252
* Photo volume ID.
5353
*
5454
*/
55-
public readonly ?int $volumeId = null,
55+
public ?int $volumeId = null,
5656
/**
5757
* Photo local ID.
5858
*
5959
*/
60-
public readonly ?int $localId = null,
60+
public ?int $localId = null,
6161
/**
6262
* Sticker set ID.
6363
*
6464
*/
65-
public readonly ?int $stickerSetId = null,
65+
public ?int $stickerSetId = null,
6666
/**
6767
* Sticker set version.
6868
*
6969
*/
70-
public readonly ?int $stickerSetVersion = null,
70+
public ?int $stickerSetVersion = null,
7171
/**
7272
* Weblocation URL.
7373
*
7474
*/
75-
public readonly ?string $url= null,
75+
public ?string $url= null,
7676
) {
7777
}
7878

0 commit comments

Comments
 (0)