simps / mqtt

🕹 MQTT Protocol Analysis and Coroutine Client for PHP. Support for 3.1, 3.1.1 and 5.0 versions of the MQTT protocol.
https://mqtt.simps.io
Apache License 2.0
358 stars 58 forks source link

fix: Creation of dynamic property is deprecated #102

Closed zoujingli closed 2 months ago

zoujingli commented 2 months ago

当设置不存在的属性时会有警告,因为不是继承了 \stdClass ,所以只能加个 isset 来判断属性是否存在。

[WARNING] ErrorException: Creation of dynamic property Simps\MQTT\Message\PubAck::$dup is deprecated

sonarcloud[bot] commented 2 months ago

Quality Gate Passed Quality Gate passed

Issues
1 New issue
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud