Skip to content

Commit 63e6cbf

Browse files
committed
Use promoted property
1 parent b085d9c commit 63e6cbf

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

src/ShareResult.php

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,9 @@
44

55
final class ShareResult
66
{
7-
/**
8-
* @var string
9-
*/
10-
private $shareUrl;
11-
12-
public function __construct(string $shareUrl)
13-
{
14-
$this->shareUrl = $shareUrl;
7+
public function __construct(
8+
private string $shareUrl
9+
) {
1510
}
1611

1712
public function getShareUrl(): string

0 commit comments

Comments
 (0)