Closed stevapple closed 1 year ago
Hello @stevapple !
Thanks for the PR.
Unfortunately, I will not be able to merge it for "WP plugin directory" compatibility reason - mandatory use of filter_input() function.
Nevertheless, I suggest you to resubmit a PR with unchanged first condition but with null coalescing for filter_input() result. Something like (string) filter_input( INPUT_SERVER, $field ) ?? ''
instead of filter_input( INPUT_SERVER, $field )
.
Thanks.
Fixes the following warning on PHP 8+:
which is actually caused by type mismatch.