Yes, I imagine what could go wrong... How about making a separate method then ?
I suppose PHP doesn't support method overloading with different explicit types ?
```
public static func(int $val) {}
public static func(string $val) {}
```