Skip to content

Commit 2491a83

Browse files
committed
📦 Multiline CPP, apply readonly
1 parent c8ec829 commit 2491a83

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

src/Collector/ProfilePlugin.php

+5-2
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,11 @@ class ProfilePlugin implements Plugin
2020
{
2121
use Plugin\VersionBridgePlugin;
2222

23-
public function __construct(private Plugin $plugin, private Collector $collector, private Formatter $formatter)
24-
{
23+
public function __construct(
24+
private readonly Plugin $plugin,
25+
private readonly Collector $collector,
26+
private readonly Formatter $formatter,
27+
) {
2528
}
2629

2730
protected function doHandleRequest(RequestInterface $request, callable $next, callable $first)

src/Collector/StackPlugin.php

+5-5
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ class StackPlugin implements Plugin
2020
{
2121
use Plugin\VersionBridgePlugin;
2222

23-
/**
24-
* @param string $client
25-
*/
26-
public function __construct(private Collector $collector, private Formatter $formatter, private $client)
27-
{
23+
public function __construct(
24+
private readonly Collector $collector,
25+
private readonly Formatter $formatter,
26+
private readonly string $client,
27+
) {
2828
}
2929

3030
protected function doHandleRequest(RequestInterface $request, callable $next, callable $first)

0 commit comments

Comments
 (0)