FILTER_VALIDATE_BOOL: make it clearer than `null` is treated as an empty string
Ref php/doc-en#3801
Thank you for the PR! However, I'm not sure how to document this. Note that null is just a special case; a stringable object would also be accepted (https://3v4l.org/jFgDD). But even FILTER_VALIDATE_BOOL is only a special case; it seems to me that FILTER_REQUIRE_SCALAR is generally a mis-nomer, and badly documented: "Requires the value to be scalar.", while in practice it is fine with most non scalar values, too (e.g. https://3v4l.org/8ZVMA).
Thank you for the PR! However, I'm not sure how to document this.
I wasn't sure either, but figured a patch was better than the php-src report just sitting there
Perhaps it should say that all values are converted to string
This PR needs to be reworked, I agree that saying any value being checked is going to be cast to string is better.