hhxsv5 / laravel-s

LaravelS is an out-of-the-box adapter between Laravel/Lumen and Swoole.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Trying to access array offset on value of type int

develop-kevin opened this issue · comments

  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
// 你检查下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,
    ],
],

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