Fix PDO::PARAM_* constant values#1273
Conversation
|
could someone give me a hint what the test-failures are about and how I am supposed to fix them? |
|
Markus Staab (@staabm) the failures happened due to changed constants are being used as default values in some methods According to reflection, those default parameters have to have a value equal to 2. Signatures used to use |
|
thx for the feedback.
which signatures ? I don't see where a hardcoded value needs an update? |
where does this reflection data come from? if you mean by the php-runtime, the following testsnippets shows the values match with the changes from this PR: could you give me a hint? I have no idea what todo |
Next methods in stubs. You have to just update default values of parameters because currently they are declared like
I don't argue with that, I'm just saying that some additional changes required. |
ohh lol, thx for the hint. didn't realize that the used constant is wrong. fixed it now.
I did not remove any constant. just re-ordered them according to their values. |
PDO::PARAM_* constant values
Yeah..I've found that later :) my bad. Thank you for the PR! |
fixed incorrect constant values and re-ordered the constant ascending by their value
see https://3v4l.org/O0hDh
refs phpstan/phpstan#5985