-
-
Notifications
You must be signed in to change notification settings - Fork 36
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
Add PHPDoc about boolean
values in scalar()
and queryScalar()
#918
Conversation
Tigrov
commented
Jan 9, 2025
Q | A |
---|---|
Is bugfix? | ❌ |
New feature? | ❌ |
Breaks BC? | ❌ |
Fixed issues | #851 |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #918 +/- ##
=========================================
Coverage 99.70% 99.70%
Complexity 1498 1498
=========================================
Files 81 81
Lines 3702 3702
=========================================
Hits 3691 3691
Misses 11 11 ☔ View full report in Codecov by Sentry. |
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.
Suggest to add scalar $default = null
parameter. This allow to use this methods for boolean values also.
How to use it? Field of boolean type can return |
When I know that result |
Good idea, but it uses db/src/Driver/Pdo/AbstractPdoCommand.php Lines 251 to 253 in 98eed39
From the documentation https://www.php.net/manual/en/pdostatement.fetchcolumn.php
|
So in this case my suggestion doesn't matter. |