Closed zoujingli closed 2 months ago
当设置不存在的属性时会有警告,因为不是继承了 \stdClass ,所以只能加个 isset 来判断属性是否存在。
[WARNING] ErrorException: Creation of dynamic property Simps\MQTT\Message\PubAck::$dup is deprecated
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
当设置不存在的属性时会有警告,因为不是继承了 \stdClass ,所以只能加个 isset 来判断属性是否存在。
[WARNING] ErrorException: Creation of dynamic property Simps\MQTT\Message\PubAck::$dup is deprecated