Requested Enhancement:
Implement a pre-compilation validation step that:
-
Scans generated and custom source files for duplicate declarations.
-
Detects when the
PHPMaker2026class (or any generated core class) is declared more than once. -
Identifies the conflicting files and line numbers where possible.
-
Prevents compilation from starting when a duplicate declaration is found.
-
Displays a clear, actionable error message to the user.