The problem is that the method that you are overwriting getRepository
is not in the same format as the base method getRepository($entity = null)
. To stop the error (by making it compatible), just add the $entity = null
to the method declaration.
As to the actual errors issue (not showing and then showing) I can't help you. It's possible that things have gotten more strict in the newer version. I did notice recently that a newer version wouldn't allow a function to be declared abstract in a class and then also be declared in an accompanying interface, so it is possible.