8000 Merge pull request #19 from Pierstoval/minor-sniffing · chalasr/symfony@2b0de57 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2b0de57

Browse files
authored
Merge pull request symfony#19 from Pierstoval/minor-sniffing
[CS] Removed property used only in constructor
2 parents b3f0601 + e7549c9 commit 2b0de57

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/ProcessManager/WebServerManager.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ final class WebServerManager
2323
{
2424
use WebServerReadinessProbeTrait;
2525

26-
private $documentRoot;
2726
private $hostname;
2827
private $port;
2928

@@ -37,7 +36,6 @@ final class WebServerManager
3736
*/
3837
public function __construct(string $documentRoot, string $hostname, int $port)
3938
{
40-
$this->documentRoot = $documentRoot;
4139
$this->hostname = $hostname;
4240
$this->port = $port;
4341

@@ -46,7 +44,7 @@ public function __construct(string $documentRoot, string $hostname, int $port)
4644
throw new \RuntimeException('Unable to find the PHP binary.');
4745
}
4846

49-
$this->process = new Process([$binary] + $finder->findArguments() + ['-dvariables_order=EGPCS', '-S', \sprintf('%s:%d', $this->hostname, $this->port)], $this->documentRoot, null, null, null);
47+
$this->process = new Process([$binary] + $finder->findArguments() + ['-dvariables_order=EGPCS', '-S', \sprintf('%s:%d', $this->hostname, $this->port)], $documentRoot, null, null, null);
5048
}
5149

5250
public function start(): void

0 commit comments

Comments
 (0)
0