hhxsv5 / laravel-s

LaravelS is an out-of-the-box adapter between Laravel/Lumen and Swoole.
MIT License
3.82k stars 471 forks source link

Trying to access array offset on value of type int #443

Closed develop-kevin closed 1 year ago

develop-kevin commented 1 year ago
  1. Your software version (Screenshot of your startup)

+---------------------------+---------+ | Component | Version | +---------------------------+---------+ | PHP | 7.4.33 | | Swoole | 4.8.12 | | LaravelS | 3.7.36 | | Laravel Framework [local] | 5.8.38 | +---------------------------+---------+

  1. Detail description about this issue(error/log) image
hhxsv5 commented 1 year ago
// 你检查下config/laravels.php配置,确定配置的层级结构是下面这样的
// ...
'sockets' => [
    [
        'host'     => '127.0.0.1',
        'port'     => 5291,
        'type'     => SWOOLE_SOCK_TCP,
        'settings' => [
            'open_eof_check' => true,
            'package_eof'    => "\r\n",
        ],
        'handler'  => \App\Sockets\TestTcpSocket::class,
        'enable'   => true,
    ],
],
hhxsv5 commented 1 year ago

@develop-kevin 你反馈后还有问题后再重开。