: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
namespace Contactable\SWV;
class AnyRule extends CompositeRule {
public function matches( $context ) {
if ( false === parent::matches( $context ) ) {
public function validate( $context ) {
foreach ( $this->rules() as $rule ) {
if ( $rule->matches( $context ) ) {
$result = $rule->validate( $context );
if ( ! is_wp_error( $result ) ) {
return $this->create_error();