Overrides ScalarComparator::accepts
public function accepts(mixed $expected, mixed $actual) : bool { // all numerical values, but not if both of them are strings return is_numeric($expected) && is_numeric($actual) && !(is_string($expected) && is_string($actual)); }