What are the potential pitfalls of defining interfaces with methods that accept different types of parameters in PHP?

Defining interfaces with methods that accept different types of parameters can lead to inconsistency and confusion in implementing classes. To solve this, it's best to define separate interfaces for each distinct set of parameters that a method may accept.

interface StringParameterInterface {
    public function method(string $param);
}

interface IntParameterInterface {
    public function method(int $param);
}

class MyClass implements StringParameterInterface {
    public function method(string $param) {
        // implementation
    }
}