The method getContent() does not exist on Magento\Framework\App\RequestInterface. It seems like you code against a sub-type of said class. However, the method does not exist in Magento\Framework\App\Console\Request. 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
50
/** @scrutinizer ignore-call */
51
$content = $this->request->getContent();
Loading history...
51
52
if ($content) {
53
try {
54
$params = Json::decode($content);
55
56
if (isset($params['hryvinskyi_invisible_token'])) {
57
$token = $params['hryvinskyi_invisible_token'];
58
}
59
} catch (Exception $e) {
60
$this->messageManager->addErrorMessage(__('Not found invisible captcha token'));