The function CommentStore::getStore is deprecated since 1.31
The usage should be replaced and the function should be hard-deprecated and removed.
MediaWikiServices::getInstance()->getCommentStore() is usable since 1.31 and should match most extensions required version, when DI is not possible at that location.