MIR1602
DuplicateClass
Two or more files define a class, interface, trait, or enum with the same fully-qualified name. PHP will produce a fatal error if both definitions are loaded in the same request.
Example
Section titled “Example”<?phpnamespace App\Models;class User {}
// file: src/Legacy/User.phpnamespace App\Models;class User {} // duplicate of App\Models\UserHow to fix
Section titled “How to fix”Rename one of the classes, or move it to a different namespace to ensure each fully-qualified name is unique across the project.