What are the potential pitfalls of not following naming conventions for class files in PHP?

Not following naming conventions for class files in PHP can lead to confusion and difficulty in maintaining and understanding the codebase. By following naming conventions, such as using PascalCase for class names and matching file names, developers can easily locate and identify classes within the project.

// Correct naming convention for class file: MyClass.php
class MyClass {
    // class implementation
}