<?php is_numeric(mixed $value): bool
<?php private static function evaluateOperation(string $a, string $operator, string $b): bool|int { $a = is_numeric($a) ? (int) $a : $a; $b = is_numeric($b) ? (int) $b : $b; $either_is_string = is_string($a) || is_string($b); $match = match ($operator) {
<?php private static function evaluateOperation(string $a, string $operator, string $b): bool|int { $a = is_numeric($a) ? (int) $a : $a; $b = is_numeric($b) ? (int) $b : $b; $either_is_string = is_string($a) || is_string($b); $match = match ($operator) { '==' => $a == $b,