This is an automated patch generated by Drupal Rector. Please see the issue summary for more details.
It is important that any automated tests available are run with this patch and that you manually test this patch.
Drupal 10 Compatibility
According to the Upgrade Status module → , even with this patch, this module is not yet compatible with Drupal 10.
Currently Drupal Rector, version 0.15.1, cannot fix all Drupal 10 compatibility problems.
Therefore this patch does not update the
info.yml
file for Drupal 10 compatibility.Leaving this issue open, even after committing the current patch, will allow the Project Update Bot → to post additional Drupal 10 compatibility fixes as they become available in Drupal Rector.
Debug info
Bot run #12554This patch was created using these packages:
- mglaman/phpstan-drupal: 1.1.35
- palantirnet/drupal-rector: 0.15.1
- 🇯🇵Japan ptmkenny
@DishaKatariya This patch is not ready to go. To check whether the patch is really working, you should also scan it with the Upgrade Status → module, which reveals these errors:
CONTRIBUTED PROJECTS -------------------------------------------------------------------------------- WebAuthn Scanned on Fri, 11/10/2023 - 08:57. 1 error found. 3 warnings found. web/modules/contrib/webauthn/src/Entity/PublicKeyCredentialSourceRepository.php: ┌──────────┬──────┬──────────────────────────────────────────────────────────────┐ │ STATUS │ LINE │ MESSAGE │ ├──────────┼──────┼──────────────────────────────────────────────────────────────┤ │ Check │ 66 │ Relying on entity queries to check access by default is │ │ manually │ │ deprecated in drupal:9.2.0 and an error will be thrown from │ │ │ │ drupal:10.0.0. Call │ │ │ │ \Drupal\Core\Entity\Query\QueryInterface::accessCheck() with │ │ │ │ TRUE or FALSE to specify whether access should be checked. │ │ │ │ │ └──────────┴──────┴──────────────────────────────────────────────────────────────┘ web/modules/contrib/webauthn/src/Form/PublicKeyCredentialCreationForm.php: ┌─────────┬──────┬─────────────────────────────────────────────────────────────┐ │ STATUS │ LINE │ MESSAGE │ ├─────────┼──────┼─────────────────────────────────────────────────────────────┤ │ Fix now │ 128 │ Call to deprecated function user_password(). Deprecated in │ │ │ │ drupal:9.1.0 and is removed from drupal:10.0.0. Use │ │ │ │ Drupal\Core\Password\PasswordGeneratorInterface::generate() │ │ │ │ instead. │ │ │ │ │ └─────────┴──────┴─────────────────────────────────────────────────────────────┘ web/modules/contrib/webauthn/webauthn.info.yml: ┌──────────┬──────┬────────────────────────────────────────────────────────────┐ │ STATUS │ LINE │ MESSAGE │ ├──────────┼──────┼────────────────────────────────────────────────────────────┤ │ Check │ 0 │ Value of core_version_requirement: ^8.9 || ^9 is not │ │ manually │ │ compatible with the next major version of Drupal core. See │ │ │ │ https://drupal.org/node/3070687. │ │ │ │ │ └──────────┴──────┴────────────────────────────────────────────────────────────┘ web/modules/contrib/webauthn/composer.json: ┌──────────┬──────┬──────────────────────────────────────────────────────────────┐ │ STATUS │ LINE │ MESSAGE │ ├──────────┼──────┼──────────────────────────────────────────────────────────────┤ │ Check │ 0 │ The drupal/core requirement is not compatible with the next │ │ manually │ │ major version of Drupal. Either remove it or update it to be │ │ │ │ compatible. See │ │ │ │ https://drupal.org/node/2514612#s-drupal-9-compatibility. │ │ │ │ │ └──────────┴──────┴──────────────────────────────────────────────────────────────┘
You should also manually test the core functionality of the module before suggesting it is ready for RTBC.
- @ptmkenny opened merge request.
- 🇯🇵Japan ptmkenny
I added an MR that fixes the issues identified by the Upgrade Status module. Please review.
- Status changed to Needs work
about 1 year ago 12:15pm 12 November 2023 - 🇯🇵Japan ptmkenny
This module doesn't install properly on D10 because webauthn-lib v3 is reliant on psr/log v1, but D10 requires v3. So it seems the upgrade to webauthn-lib v4 is a requirement to get this working in D10, but that is a lot more work.
- First commit to issue fork.