remove warnings on strict standards

I had two warnings about method declaration not being the same.