-
Notifications
You must be signed in to change notification settings - Fork 11
Modify: optimize code structure #4
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
base: main
Are you sure you want to change the base?
Conversation
src/Feedback.php
Outdated
| class Feedback implements \JsonSerializable | ||
| { | ||
| public function __construct( | ||
| public string $feedback_type, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
constructor property promotion has been introduced in php 8 but composer.json allow you to use 7.4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, I overlooked this point. Thank you for the reminder. I will handle it as soon as possible.
src/Feedback.php
Outdated
| { | ||
| public function __construct( | ||
| public string $feedback_type, | ||
| public string $user_id, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also I think camelCase is much common now than snake_case
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Regarding this, the current coding style is being maintained as much as possible to prevent compatibility issues. The implementation of camel case naming will be considered in future major versions.
|
感谢,但是似乎需要修复一下UT |
好的,这两天内处理。 |
大佬,让我来负责 PHP SDK 开发吧 🤣!