fix DoctrinePass if inference has been disabled