What potential pitfalls can arise from calling non-static methods statically in PHP, and how can they be addressed?

Calling non-static methods statically in PHP can lead to unexpected behavior, as static methods do not have access to $this or any instance-specific data. This can result in errors or incorrect data being processed. To address this issue, non-static methods should be called using an instance of the class rather than statically.

class Example {
    public function nonStaticMethod() {
        // Method implementation
    }
}

// Correct way to call a non-static method
$instance = new Example();
$instance->nonStaticMethod();