Skip to content
This repository was archived by the owner on Dec 9, 2023. It is now read-only.

Commit 78ea858

Browse files
committed
add parameter type declarations to private methods
1 parent 007b6a8 commit 78ea858

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

WebServerConfig.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ public function getDisplayAddress()
119119
return gethostbyname($localHostname).':'.$this->port;
120120
}
121121

122-
private function findFrontController($documentRoot, $env)
122+
private function findFrontController(string $documentRoot, string $env)
123123
{
124124
$fileNames = $this->getFrontControllerFileNames($env);
125125

@@ -130,7 +130,7 @@ private function findFrontController($documentRoot, $env)
130130
}
131131
}
132132

133-
private function getFrontControllerFileNames($env)
133+
private function getFrontControllerFileNames(string $env)
134134
{
135135
return ['app_'.$env.'.php', 'app.php', 'index_'.$env.'.php', 'index.php'];
136136
}

0 commit comments

Comments
 (0)