Fix propagation of project.detect when detecting project php