The method getTokenManager() does not exist on Bdf\Form\ElementInterface. It seems like you code against a sub-type of Bdf\Form\ElementInterface such as Bdf\Form\Csrf\CsrfElement.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
The method invalidateToken() does not exist on Bdf\Form\ElementInterface. It seems like you code against a sub-type of Bdf\Form\ElementInterface such as Bdf\Form\Csrf\CsrfElement.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
54
$element->/** @scrutinizer ignore-call */
55
invalidateToken();
Loading history...
55
}
56
}
57
}
58
59
/**
60
* {@inheritdoc}
61
*/
62
public function constraints(): array
63
{
64
return []; // Does CsrfConstraint should be returns ?