Problem/Motivation
Through #3258101: Make CAPTCHA Drupal 10 compatible a bunch of deprecated code found its way in to this module's repository. As it is flagged with "@phpstan-ignore-next-line" it won't get noticed by any deprecation tools nor the Drupal CI.
Steps to reproduce
Proposed resolution
Remove / Adjust the deprecated code.
Comments
Comment #2
grevil commentedAs in #3258101: Make CAPTCHA Drupal 10 compatible already mentioned, the code in question seems like a fallback for older Drupal versions and can PROBABLY removed safely here.
Comment #3
ressaThanks @Grevil, I have added this issue to #3320867: [META][2.x] CAPTCHA 2.0.x release.
Comment #4
grevil commentedTHX @ressa! I actually already mentioned the problem in #3316486: [2.x] Code review, cleanup and tests, so I am going to fix this issue there, with the other remaining issues, remove the part in the meta issue and close this one! :)