Open mambax7 opened 2 years ago
This is purely an incorrect docblock. If we try to create a list, we'll be forever twiddling it. The appropriate fix is:
* @param mixed $value
Are you going to do it, or should I make the adjustments for all the cases with "null" and submit PR?
Any * @param null
lines are obviously wrong. Why have a parameter that only accepts null? I count about 43 occurances.
They are not all 'mixed' so some investigation is required. There are a lot that should be string|null
and some array|null
.
If you would like to do make the adjustments, please do. Otherwise I'll do it.
Whatever works better for you - I'm happy to help, but if you prefer to do it yourself because of potential errors on my part, I perfectly fine with that. So just let me know...
I want to set the default to 1:
But XOOPS Kernel Object requires null:
Should we change
to
Could we also make similar adjustments for all other cases like this one?