Problem/Motivation
If you are using less than Drupal 9.4 and Captcha 8.x-1.3 or greater, there is an error on the captcha examples page.
Steps to reproduce
Having less than Drupal 9.4 and Captcha greater than 1.3, then visit the captcha examples page and you will see the following:

Proposed resolution
This comes as a result of the change to using invokeAllWith in moduleHandler that is not part of < 9.4, so it defaults to the "old way" and there is an error in that line of code. The patch is supplied. Once patch is applied, everything works as expected.
Comments
Comment #2
ebremner commentedComment #3
ebremner commentedHere is the patch to fix the issue.
Comment #4
japerryUgghhhh. Thanks for finding it. I guess we should write a test to ensure this works in the future.
Comment #5
ebremner commentedComment #6
lily.yan commentedConfirming that patch #3 worked for me in Drupal 9.3.19.
Comment #8
japerry