Trying to use @Inject on a file containing such annotations will cause an error. This is because Doctrine's annotation reader tries to read ALL annotations in the file.
There is now a SimpleAnnotationReader that allows to read only specific annotations, so that's a solution.
Furthermore, this alternate reader makes the import (use DI\Annotation\Inject) optional, which is awesome.
The text was updated successfully, but these errors were encountered:
Example:
Trying to use @Inject on a file containing such annotations will cause an error. This is because Doctrine's annotation reader tries to read ALL annotations in the file.
There is now a
SimpleAnnotationReader
that allows to read only specific annotations, so that's a solution.Furthermore, this alternate reader makes the import (
use DI\Annotation\Inject
) optional, which is awesome.The text was updated successfully, but these errors were encountered: