The method getIdentifier() does not exist on rhertogh\Yii2Oauth2Serve...h2ActiveRecordInterface. It seems like you code against a sub-type of said class. However, the method does not exist in rhertogh\Yii2Oauth2Serve...2AuthCodeScopeInterface or rhertogh\Yii2Oauth2Serve...se\Oauth2TokenInterface or rhertogh\Yii2Oauth2Serve...uth2UserClientInterface or rhertogh\Yii2Oauth2Serve...cessTokenScopeInterface or rhertogh\Yii2Oauth2Serve...\Oauth2EnabledInterface or rhertogh\Yii2Oauth2Serve...serClientScopeInterface or rhertogh\Yii2Oauth2Serve...th2ClientScopeInterface or rhertogh\Yii2Oauth2Serve...uth2UserClientInterface or rhertogh\Yii2Oauth2Serve...serClientScopeInterface. Are you sure you never get one of those?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation