Skip to content
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

Open
wants to merge 7 commits into
base: develop
Choose a base branch
from

Conversation

DigitalTimK
Copy link
Contributor

This PR will:

@DigitalTimK DigitalTimK changed the title Enhancement/parameter constructors Improve parameter constructors May 4, 2024
@GhaziTriki GhaziTriki added the enhancement Improvement or addition to existing functionality label May 5, 2024
@GhaziTriki GhaziTriki added this to the 3.0.0 milestone May 5, 2024
@@ -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',
Copy link
Member

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

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To double check.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be good!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improvement or addition to existing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants