Repository navigation
Only define classes if they don't exist - #277
someonewithpc wants to merge 1 commit into
Conversation
|
The autoloader is responsible for requiring these files, and it will never be triggered at all if the class already exists. Please describe how you get this error. It seems to indicate that you load the files in an unsupported way. |
|
In a symfony project, attempting to use |
|
Please provide a full reproducer. The case you describe in one sentence is precisely the case that has been tested by the core team without any issue, meaning that you probably miss something. |
|
How exactly do you use the class without a |
|
I created a barebones project at: If you clone it and run (as an aside |
With it being in the global namespace, I'm not supposed to need to |
|
@someonewithpc this error message tells me that your code is not in the global namespace but in the |
|
As @stof said you need to change your code to |
I noticed specifically with
Normalizerthat I get an error saying:This occurred with the
intlextension installed and trying to use the class without importing it withuse.