-
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
Regenerated code. (bunq/sdk_php#118) #141
Conversation
@sandervdo please 👀 |
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.
* | ||
* @return RequestInquiryReference[] | ||
*/ | ||
public function getRequestReferenceSplitTheBill() |
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.
No return type generated?
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.
You mean type hint ?
No, once we update the min required php version. As these fields can be null.
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.
No, return type.. Doc does not specify this function can return null
. So which one is wrong?
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.
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.
Yea I meant return type hint :P. Well the thing is, the generator can not know if these response field will always be present and therefore add |null
as the definitions do no define nullable. If not we would need to add |null
to all response fields 🤔
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.
Hmm I see, let's leave it like this then. Sounds like an unnecessary refactor.
* | ||
* @param RequestInquiryReference[] $requestReferenceSplitTheBill | ||
*/ | ||
public function setRequestReferenceSplitTheBill($requestReferenceSplitTheBill) |
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.
Same.
References #118