Skip to content

Commit 81bb2f3

Browse files
schlesseraclaude
andcommitted
Remove roave/security-advisories
Composer 2.9+ blocks packages with known security advisories by default, which fully replaces this package. Since its latest update, the package also conflicts with every PHP version without the newest security release, so it can't be installed on the older PHP versions we test on. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 1f53300 commit 81bb2f3

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

‎.readme-partials/INSTALLATION.md‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ In order to make code changes to WP-CLI, you'll need to set up this `wp-cli-dev`
66
2. Install all Composer dependencies for a complete `wp-cli-bundle` setup, while symlinking all of the previously cloned packages into the Composer `vendor` folder.
77
3. Symlink all folder in `vendor` into corresponding `vendor` folders in each repository, thus making the centralized functionality based on Composer available in each repository subfolder.
88

9-
Before you can proceed further, you'll need to make sure you have [Composer](https://getcomposer.org/), PHP, and a functioning MySQL or MariaDB server on your local machine.
9+
Before you can proceed further, you'll need to make sure you have [Composer](https://getcomposer.org/) 2.9 or later, PHP, and a functioning MySQL or MariaDB server on your local machine.
10+
11+
Composer 2.9 and later refuse to install package versions with known security advisories, which protects the development environment from vulnerable dependencies. That is why WP-CLI doesn't rely on the `roave/security-advisories` package for this anymore. Older Composer versions install without this check. See the [Composer 2.9 release post](https://blog.packagist.com/composer-2-9/) for details.
1012

1113
Once the prerequisites are met, clone the GitHub repository and run the installation process:
1214

‎composer.json‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -256,9 +256,6 @@
256256
"wp-cli/wp-config-transformer": "dev-main as 1.2.x-dev",
257257
"wp-cli/wp-super-cache-cli": "dev-main"
258258
},
259-
"require-dev": {
260-
"roave/security-advisories": "dev-latest"
261-
},
262259
"suggest": {
263260
"psy/psysh": "Enhanced `wp shell` functionality"
264261
},

0 commit comments

Comments
 (0)