-
Notifications
You must be signed in to change notification settings - Fork 137
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
Strongly typed endpoint output #106
Conversation
0110fd7
to
ecdf8e5
Compare
@@ -88,7 +87,7 @@ protected function httpMethod() | |||
/** | |||
* @return PNAccessManagerAuditResult |
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.
Is this comment need when a type is defined?
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.
I'll include it in future PR
{ | ||
return PNGetChannelMetadataResult::fromPayload($result); | ||
} | ||
|
||
public function sync(): PNGetChannelMetadataResult | ||
{ |
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.
In src/PubNub/Endpoints/Objects/Channel/GetAllChannelMetadata.php there is different formatting. Sth like this:
public function sync(): PNGetChannelMetadataResult {
return parent::sync();
}
Shouldn't it be consistent?
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.
fixed. the correct way is the opening bracket for a class or function in newline, for conditionals in same line after a single space.
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.
Did you commit this fix? I can see only one commit - initial one.
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.
@pubnub-release-bot release |
🚀 Release successfully completed 🚀 |
refactor: Added strict typing for some customer facing elements