Skip to content

Commit 62f73af

Browse files
authored
Fix return value error and Remove useless code (#655)
* Fix return value error * Remove useless code
1 parent b8cbe93 commit 62f73af

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Commands/StartRoadRunnerCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ protected function maxExecutionTime()
171171
/**
172172
* Get the RPC IP address the server should be available on.
173173
*
174-
* @return int
174+
* @return string
175175
*/
176176
protected function rpcHost()
177177
{

src/Swoole/SwooleClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ public function serveStaticFile(Request $request, RequestContext $context): void
140140
$publicPath = $context->publicPath;
141141
$octaneConfig = $context->octaneConfig ?? [];
142142

143-
if (! empty($octaneConfig['static_file_headers'] ?? [])) {
143+
if (! empty($octaneConfig['static_file_headers'])) {
144144
foreach ($octaneConfig['static_file_headers'] as $pattern => $headers) {
145145
if ($request->is($pattern)) {
146146
foreach ($headers as $name => $value) {

0 commit comments

Comments
 (0)