@@ -15,9 +15,9 @@ class ServerInfo
1515 protected Closure |null $ requestCallback = null ;
1616
1717
18- #[Pure] public static function create (): static
18+ #[Pure] public static function create (): ServerInfo
1919 {
20- return new static ();
20+ return new ServerInfo ();
2121 }
2222
2323 /**
@@ -32,7 +32,7 @@ public function getHost(): string
3232 * @param string $host
3333 * @return ServerInfo
3434 */
35- public function setHost (string $ host ): static
35+ public function setHost (string $ host ): ServerInfo
3636 {
3737 $ this ->host = $ host ;
3838 return $ this ;
@@ -50,7 +50,7 @@ public function getPort(): int
5050 * @param int $port
5151 * @return ServerInfo
5252 */
53- public function setPort (int $ port ): static
53+ public function setPort (int $ port ): ServerInfo
5454 {
5555 $ this ->port = $ port ;
5656 return $ this ;
@@ -68,7 +68,7 @@ public function getDocumentRoot(): ?string
6868 * @param string|null $documentRoot
6969 * @return ServerInfo
7070 */
71- public function setDocumentRoot (?string $ documentRoot ): static
71+ public function setDocumentRoot (?string $ documentRoot ): ServerInfo
7272 {
7373 $ this ->documentRoot = $ documentRoot ;
7474 return $ this ;
@@ -86,7 +86,7 @@ public function getRouterScript(): ?string
8686 * @param string|null $routerScript
8787 * @return ServerInfo
8888 */
89- public function setRouterScript (?string $ routerScript ): static
89+ public function setRouterScript (?string $ routerScript ): ServerInfo
9090 {
9191 $ this ->routerScript = $ routerScript ;
9292 return $ this ;
@@ -104,7 +104,7 @@ public function getRequestCallback(): ?Closure
104104 * @param Closure|null $requestCallback
105105 * @return ServerInfo
106106 */
107- public function setRequestCallback (?Closure $ requestCallback ): static
107+ public function setRequestCallback (?Closure $ requestCallback ): ServerInfo
108108 {
109109 $ this ->requestCallback = $ requestCallback ;
110110 return $ this ;
0 commit comments