-
Notifications
You must be signed in to change notification settings - Fork 473
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 stub for mysqli_stmt properties #700
Conversation
stubs/mysqli.stub
Outdated
public $errno; | ||
|
||
/** | ||
* @var array |
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.
I think this should be smth like
@var array<int, array{errno: int, sqlstate: string, error: string}>
stubs/mysqli.stub
Outdated
public $insert_id; | ||
|
||
/** | ||
* @var int |
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.
Shouldn't this be 0|positive-int
as well as is $param_count
?
/** | ||
* @var int | ||
*/ | ||
public $field_count; |
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.
I guess this one should also never be negative?
stubs/mysqli.stub
Outdated
public $param_count; | ||
|
||
/** | ||
* @var string |
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.
If I interpret the docs right, I think this will never be empty, as 00000
means no error
Additionally, update the corresponding procedural style aliases.
@herndlm thanks for the recommendations. I initially intended to keep the changes scoped to the original issue and keep the signatures consistent with their existing procedural style aliases. |
Yeah I just wanted to suggest things, but I'm still too new here, so do take my comments with a grain of salt please! |
Thank you both! :) |
See #692.