On Composer's autoload optimization page:
Note: You should not enable any of these optimizations in development as they all will cause various problems when adding/removing classes. The performance gains are not worth the trouble in a development setting.
I can definitely see problems for the level 2 optimizations (authoritative class map) on a development environment, but I can't determine what the problems are for level 1 optimizations (class map generation) if I follow the PSR-4 standard.
- If I add a class that didn't get generated in the class map, it will fall back to PSR-4 rules to look for the class.
- If I refactor (move) a class to a different namespace, it will also not find it in the class map and attempt to resolve it using PSR-4 rules.
What are the potential issues with the generated class map on dev environment with a project that complies with PSR-4?