Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Creation of dynamic property is deprecated #102

Merged
merged 2 commits into from
Aug 24, 2024

Conversation

zoujingli
Copy link
Contributor

@zoujingli zoujingli commented Aug 22, 2024

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

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

Copy link

sonarcloud bot commented Aug 23, 2024

@sy-records sy-records changed the title fix: 设置消息时不设置无效的属性 fix: Creation of dynamic property is deprecated Aug 23, 2024
@sy-records sy-records merged commit 6285474 into simps:master Aug 24, 2024
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants