title: How in php8 make match with more complicated conditions?
body: <p>As php8 allows match like :</p>
  <pre><code>echo match ($v) {
      0 =&gt; 'Foo',
      1 =&gt; 'Bar',
      2 =&gt; 'Baz',
  };  // Bar
  </code></pre>
  <p>I wonder if there is a way to use in match more complicated conditions, like :</p>
  <pre><code>  if ($checkValueType == EnumType::Integer and ! isValidInteger($value) and ! empty
          ($default_value)) {
          return $default_value;
      }
      if ($checkValueType == EnumType::Float and ! isValidFloat($value) and ! empty($default_value)) {
          return $default_value;
      }
      if ($checkValueType == EnumType::Bool and ! isValidBool($value) and ! empty($default_value)) {
          return $default_value;
      }
  
      return $value;
  </code></pre>
  <p>Thanks in advance!</p>