Open dvorakvaclav opened 1 year ago
Tax class can not be changed in gateway settings because of this function used in update_payment_options():
update_payment_options()
private function _sanitize_tax_class( $tax_option, $default = 'incl' ) { if ( in_array( $tax_option, array( 0, 'incl', 'excl' ) ) ) return $tax_option; return $default; }
In php 7 the condition returns true for every string, but in php 8 only 0, inc and excl pass.
0
inc
excl
Hi! I haven't tested it, but it should return 0, inc, and excl, both in PHP 7 and 8. I don't see any reason to return true. How can I reproduce the error?
true
Tax class can not be changed in gateway settings because of this function used in
update_payment_options()
:In php 7 the condition returns true for every string, but in php 8 only
0
,inc
andexcl
pass.