What potential issues can arise from mixing static and non-static functions within a PHP class?

Mixing static and non-static functions within a PHP class can lead to confusion and inconsistency in how the class is used. It can make the code harder to maintain and understand, as static functions are called on the class itself while non-static functions require an instance of the class. To solve this issue, it's best to separate static and non-static functions into different classes or make all functions either static or non-static for consistency.

class MyClass {
    public function nonStaticFunction() {
        // non-static function code here
    }

    public static function staticFunction() {
        // static function code here
    }
}