Skip to content

Commit c6e661f

Browse files
committed
Use property promotion
1 parent fb1f8e0 commit c6e661f

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

source/includes/monitoring/sdam.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,9 @@
55
// start-mysubscriber
66
class MySubscriber implements MongoDB\Driver\Monitoring\SDAMSubscriber
77
{
8-
/** @var resource */
9-
private $stream;
10-
118
/** @param resource $stream */
12-
public function __construct($stream)
9+
public function __construct(private $stream)
1310
{
14-
$this->stream = $stream;
1511
}
1612

1713
public function serverOpening(MongoDB\Driver\Monitoring\ServerOpeningEvent $event): void

0 commit comments

Comments
 (0)