Add suggest section to composer.json for recommended extensions#1388
Conversation
Add ext-iconv and ext-pcntl as suggested extensions in composer.json. This way, Composer will display these recommendations when installing PHP_CodeSniffer, helping users discover optional extensions that improve functionality. Refs PHPCSStandards/PHP_CodeSniffer-documentation 91
|
This reminds me of squizlabs/PHP_CodeSniffer#3754. Is it within scope to add all the extensions to the 'suggest' list here? |
Yes, 💯 . Good call. @rodrigoprimo Keep the following in mind (from my review of squizlabs/PHP_CodeSniffer#3754:
@fredden Also reminds me of your offer to verify that those extensions are all used conditionally:
I'd definitely be happy to see this verified/safeguarded, so I'd welcome PRs handling that. Maybe we should open an issue about it, so we can also track what has been verified, but didn't need a PR ? If you don't have the bandwidth for this at this time, maybe you could ask @rodrigoprimo if he wants to do that too (open the issue + verify extension usage) ? |
jrfnl
left a comment
There was a problem hiding this comment.
Thanks @rodrigoprimo!
P.S.: I'll hold off on merging for the moment until you've had a chance to read the discussion between @fredden and me and indicated how you want to move forward in light of that.
|
Thanks for the review, @jrfnl!
I'd be happy to help with that. @fredden, let me know how you'd like to proceed (either by creating the issue and verifying the extension used, or by asking for my help at any point in this process). @jrfnl, unless I misunderstood something, I think this PR can be merged. I will wait to hear from @fredden for the next steps. |
Description
As suggested in PHPCSStandards/PHP_CodeSniffer-documentation#91 (review), this PR adds
ext-iconvandext-pcntlas suggested extensions in composer.json.This way, Composer will display these recommendations when installing PHP_CodeSniffer, helping users discover optional extensions that improve functionality.
Suggested changelog entry
Added suggest section to composer.json to inform users about the recommended ext-iconv and ext-pcntl PHP extensions.
Related issues/external references
Related to PHPCSStandards/PHP_CodeSniffer-documentation#91 and PHPCSStandards/PHP_CodeSniffer-documentation#95
Types of changes
PR checklist