Closed (fixed)
Project:
Drupal.org security advisory coverage applications
Component:
module
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
11 Sep 2025 at 16:50 UTC
Updated:
9 Nov 2025 at 23:14 UTC
Jump to comment: Most recent
Comments
Comment #2
avpadernoThank you for applying!
Please read Review process for security advisory coverage: What to expect for more details and Security advisory coverage application checklist to understand what reviewers look for. Tips for ensuring a smooth review gives some hints for a smoother review.
The important notes are the following.
To the reviewers
Please read How to review security advisory coverage applications, Application workflow, What to cover in an application review, and Tools to use for reviews.
The important notes are the following.
For new reviewers, I would also suggest to first read In which way the issue queue for coverage applications is different from other project queues.
Comment #3
vishal.kadam1. FILE: webform_intl_tel_national_mode.info.yml
core_version_requirement: ^9 || ^10 || ^11FILE: composer.json
A new project should not declare itself compatible with a Drupal release that is no longer supported. No site should be using Drupal 8 nor Drupal 9, and people should not be encouraged to use those Drupal releases.
2. FILE: webform_intl_tel_national_mode.libraries.yml
version: VERSIONVERSION is only used by Drupal core modules. Contributed modules should use a literal string that does not change with the Drupal core version a site is using.
3. FILE: webform_intl_tel_national_mode.module
The usual description for a .module file is “Hook implementations for the [module name] module”, where [module name] is the module name given in the .info.yml file.
Comment #4
danrodThanks @vishal.kadam
I addressed the issues you pointed out, and can be reviewed in the DEV version now:
https://www.drupal.org/project/webform_intl_tel_national_mode/releases/1...
https://git.drupalcode.org/project/webform_intl_tel_national_mode
Comment #5
danrodComment #6
avpadernoComment #7
avpadernowebform_intl_tel_national_mode.info.yml
The dependencies follow the format
<project name>:<module name>. What used for the Webform module is not correct.webform_intl_tel_national_mode.module
For a new module that aims to be compatible with Drupal 10 and Drupal 11, I would rather implement hooks as class methods as described in Support for object oriented hook implementations using autowired services.
It would require increasing the minimum Drupal 10 version supported, but Drupal 10.1 is no longer supported.
Before
<a href=":link">project page</a>there is an extra space that needs to be removed.I would rather use use a single translated string instead of two strings, but really the second string is providing information the README.md file already provides.
The first string should be more specific than saying the module provides a workaround. This module changes the UX of the out-of-the-box Webform configuration for the telephone element type. is more descriptive. Yes, it repeats what the README.md file says, but the description of the module can be repeated. (It helps administrators to remember which modules the site has.) What
hook_help()implementations should not do is repeating everything the README.md file says.The help says This module is provided as a workaround for project page which is not correct because:
composer.json
The Drupal core restrictions have not been updated, but really providing that is not necessary, since the composer.json file provide by drupal.org will automatically add the
drupal/coreline when the composer.json file does not provide it.Also, the restrictions provided for the Webform module should be provided also in the .info.yml file, so that Drupal core does not install the module with a different version of the Webform module.
Drupal 10 requires at least PHP 8.1; the PHP requirement is not necessary.
Comment #8
danrodThanks @avpaderno
I addressed the issues you pointed out, and can be reviewed in the 1.0.x branch now: https://git.drupalcode.org/project/webform_intl_tel_national_mode
Comment #9
danrodComment #10
avpadernowebform_intl_tel_national_mode.module
There are still hooks in the .module file which have not been converted.
Since the module is declared compatible with Drupal 10.3, removing the function implementing the hook is not possible. The function still needs to be defined, but it calls the method defined by the service class, as described in Support for object oriented hook implementations using autowired services (Backwards-compatible Hook implementation for Drupal versions from 10.1 to 11.0).
There are PHP_CodeSniffer warnings/errors which need to be fixed.
Comment #11
danrodHello @avpaderno
Sorry for the delay on the fixes, I think I addressed all of them, please have a look and let me know if you have more questions.
I also fixed the PHPCS / PHPSTAN errors, I'll move this to review again.
Comment #12
danrodComment #13
avpadernowebform_intl_tel_national_mode.module
The functions are correctly using attributes. They need to call the service methods, instead of duplicating their code.
Once the module is only compatible with Drupal 11 or higher versions, the procedural implementation of the hooks can be removed, together the definition of the Drupal\webform_intl_tel_national_mode\Hook\WebformIntlTelNationalModeHooks service in the webform_intl_tel_national_mode.services.yml file.
Comment #14
avpadernoFor example, in a module I maintain, the hook implementations change to the following ones.
Comment #15
danrodHello @avpaderno,
Thanks a lot, I didn't realise this and I think I have the same problem (duplicate code instead of call to service methods) in some of the modules that I maintain, and of course I'll fix that too.
Meanwhile, I removed the duplicate code here and replaced it with the corresponding calls to the service methods, please review again.
Thanks a lot for your help and guidance, much appreciated. I also tested this on a D10.5.4 instance and worked like a charm.
Thanks!
Comment #16
danrodComment #17
avpadernoAs a side note, I found https://www.drupal.org/node/3442349#comment-16224531, which explains that including the PHPStan directive inside the documentation comment avoids PHP_CodeSniffer complains about the comment between the documentation comment and the function.
Thank you for your contribution and for your patience with the review process!
I am going to update your account so you can opt into security advisory coverage any project you create, including the projects you already created.
These are some recommended readings to help you with maintainership:
You can find more contributors chatting on Slack or IRC in #drupal-contribute. So, come hang out and stay involved!
Anyone is welcome to participate in the review process. Please consider reviewing other projects that are pending review. I encourage you to learn more about that process and join the group of reviewers.
I thank also all the reviewers for helping with these applications.
Comment #18
avpadernoComment #20
danrodThanks a bunch @avpaderno !!
For sure I will help the review process. Have a great evening !!