Issue #3580901 by jwilson3: Fix GitLab CI failures
- phpcs fix: remove duplicate period causing the forbidden comment error.
- phpstan fix: Make the library.discovery service work in a Drupal 10/11-compatible way. Also, I moved the code order so that config is saved before clearing so that rebuilt libraries use the updated settings, and add a functional test for the settings submit path. Refs change record: https://www.drupal.org/node/3462970
- composer fix: the problem is caused because upstream depedency drupal/captcha is not compatible with Drupal 12 yet (per core version compatibility string in captcha.info.yml). The fix is to temporarily disable "Next Major" (Drupal 12) testing in this module's CI configuration until upstream is Drupal 12 compatible.
Closes #3580901