What are the potential pitfalls of using the __call() magic method in PHP for method invocation?

The potential pitfall of using the __call() magic method for method invocation in PHP is that it can lead to ambiguity and make the code harder to understand. To solve this issue, it is recommended to explicitly define the methods within the class rather than relying on the __call() magic method for method invocation.

class MyClass {
    public function myMethod() {
        // Method implementation
    }

    public function __call($method, $args) {
        throw new Exception("Method $method does not exist");
    }
}