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

Deprecation warnings using PHP 8.2

marden opened this issue · comments

  1. Your software version (Screenshot of your startup)

    Software Version
    PHP 8.2.1
    Swoole 5.0.1
    LaravelS 3.7.35
    Laravel/Lumen 9.48.0
  2. Detail description about this issue(error/log)

After upgrading to PHP 8.2 we see deprecation warnings in a log:

Deprecated: Creation of dynamic property Swoole\Http\Server::$timerProcess is deprecated in /app/vendor/hhxsv5/laravel-s/src/LaravelS.php on line 55
Deprecated: Creation of dynamic property Swoole\Http\Server::$inotifyProcess is deprecated in /app/vendor/hhxsv5/laravel-s/src/LaravelS.php on line 62
Deprecated: Creation of dynamic property Swoole\Http\Server::$customProcesses is deprecated in /app/vendor/hhxsv5/laravel-s/src/LaravelS.php on line 65

I also encountered it!


| | | |/ |
| | __ _ _ __ __ ___ | | (
| | / | '__/ _ \ \ / / _ \ |_
\
| |
| (
| | | | (
| |\ V / / |) |
|
_,|| _,| _/ ___||_____/

Speed up your Laravel/Lumen

Components
+---------------------------+---------+
| Component | Version |
+---------------------------+---------+
| PHP | 8.2.14 |
| Swoole | 5.1.1 |
| LaravelS | 3.7.37 |
| Laravel Framework [local] | 10.41.0 |
+---------------------------+---------+
Protocols
+----------------+--------+-----------------------------------------+---------------------+
| Protocol | Status | Handler | Listen At |
+----------------+--------+-----------------------------------------+---------------------+
| Main HTTP | On | Laravel Router | http://0.0.0.0:8200 |
| Main WebSocket | On | App\Services\WebSocket\WebSocketHandler | ws://0.0.0.0:8200 |
+----------------+--------+-----------------------------------------+---------------------+
Feedback: https://github.com/hhxsv5/laravel-s
[2024-01-22 09:22:18] [TRACE] Swoole is running in daemon mode, see "ps -ef|grep laravels".
PHP Deprecated: Creation of dynamic property Swoole\WebSocket\Server::$timerProcess is deprecated in /app/tp-server/vendor/hhxsv5/laravel-s/src/LaravelS.php on line 55

Deprecated: Creation of dynamic property Swoole\WebSocket\Server::$timerProcess is deprecated in /app/tp-server/vendor/hhxsv5/laravel-s/src/LaravelS.php on line 55
PHP Deprecated: Creation of dynamic property Swoole\WebSocket\Server::$inotifyProcess is deprecated in /app/tp-server/vendor/hhxsv5/laravel-s/src/LaravelS.php on line 62

Deprecated: Creation of dynamic property Swoole\WebSocket\Server::$inotifyProcess is deprecated in /app/vendor/hhxsv5/laravel-s/src/LaravelS.php on line 62
PHP Deprecated: Creation of dynamic property Swoole\WebSocket\Server::$customProcesses is deprecated in /app/vendor/hhxsv5/laravel-s/src/LaravelS.php on line 65

Deprecated: Creation of dynamic property Swoole\WebSocket\Server::$customProcesses is deprecated in /app/vendor/hhxsv5/laravel-s/src/LaravelS.php on line 65

这个问题修复了吗,可以忽略不管吗