Skip to content

Commit

Permalink
Fix return value error and Remove useless code (#655)
Browse files Browse the repository at this point in the history
* Fix return value error

* Remove useless code
  • Loading branch information
sy-records authored Mar 4, 2023
1 parent b8cbe93 commit 62f73af
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Commands/StartRoadRunnerCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ protected function maxExecutionTime()
/**
* Get the RPC IP address the server should be available on.
*
* @return int
* @return string
*/
protected function rpcHost()
{
Expand Down
2 changes: 1 addition & 1 deletion src/Swoole/SwooleClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ public function serveStaticFile(Request $request, RequestContext $context): void
$publicPath = $context->publicPath;
$octaneConfig = $context->octaneConfig ?? [];

if (! empty($octaneConfig['static_file_headers'] ?? [])) {
if (! empty($octaneConfig['static_file_headers'])) {
foreach ($octaneConfig['static_file_headers'] as $pattern => $headers) {
if ($request->is($pattern)) {
foreach ($headers as $name => $value) {
Expand Down

0 comments on commit 62f73af

Please sign in to comment.