-
Notifications
You must be signed in to change notification settings - Fork 54
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
Return static. (bunq/sdk_php#73) #74
Conversation
This ensure that the base class is returned instead of BunqModel.
src/Model/Core/BunqModel.php
Outdated
*/ | ||
public static function createFromJsonString(string $json): BunqModel | ||
public static function createFromJsonString(string $json) |
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.
Can it return anything bunt a BunqModel
? Why do we remove the strict return 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.
Fair enough.
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.
one comment
@dnl-blkv All yours again 👀 |
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.
Looks good!
This ensure that the base class is returned instead of BunqModel.
Closes #73