Error using drush "skip" option values where id and title are different

Created on 30 July 2025, 18 days ago

Problem/Motivation

Error using drush "skip" option values where id and title are different.

Using any of the skip option values of admin_permissions, fields, input_formats, or trusted_hosts encounters the following error

```
Error: Call to a member function getPluginId() on null in
/modules/contrib/security_review/src/Commands/SecurityReviewCommands.php on line 158 #0 [internal function]:
...
```

It appears that SecurityCheckPluginManager method getCheck attempts to match the id with the title.
https://git.drupalcode.org/project/security_review/-/blob/3.1.x/src/Secu...

In SecurityReviewCommands method getCheck the check_name is used as the title argument.
https://git.drupalcode.org/project/security_review/-/blob/3.1.x/src/Comm...

For these checks the title doesn't "match" the id.

Steps to reproduce

`drush secrev --skip="trusted_hosts"`

πŸ“Œ Task
Status

Active

Version

3.1

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States joestewart

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024