-
Notifications
You must be signed in to change notification settings - Fork 199
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
Improve parameter constructors #247
base: develop
Are you sure you want to change the base?
Improve parameter constructors #247
Conversation
@@ -64,7 +64,7 @@ public function getHTTPQuery(): string | |||
return $this->buildHTTPQuery( | |||
[ | |||
'recordID' => $this->recordingId, | |||
'publish' => !is_null($this->publish) ? ($this->publish ? 'true' : 'false') : $this->publish, | |||
'publish' => $this->publish ? 'true' : 'false', |
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.
It should be 'publish' => $this->publish ?? 'false' ? 'true' : 'false',
which is similar to the previous implementation because the constructor is not preventing null value of a boolean
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.
To double check.
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.
should be good!
This PR will: