Just to be sure, during the encoding process, are the use-statement removed?
I'm facing a problem with annotations after encoding my code. I have the following class:
use Doctrine\ORM\Mapping as ORM;
After encoding i get this error:
The annotation "ORM\Entity" in xxx was never imported. Did you maybe forget to add a "use" statement for this annotation?
Following the code in Doctrine/Common/Annotations/DocParser.php to print the use-statements imported from file, it returns just the namespace. Before encoding it returns them all.
If i change the annotation to:
it works as expected.
It happens with any level of code optimization. The same happens with ionCube (sorry to bring it here, just tried).
Is there any "hidden" option to not remove the use-statements (thought code optimization=none do the trick, but no) or will i have to rewrite all my code? Any thoughts?