Conversation
Composer package changes
|
|
Coverage report for commit: dbc1cfe Summary - Lines: 100.00% | Methods: 100.00%
🤖 comment via lucassabreu/comment-coverage-clover |
||||||||||||||||||||||||
There was a problem hiding this comment.
Pull request overview
This PR updates the project’s PHPStan setup to rely on phpstan/extension-installer rather than manually including individual PHPStan extension NEON files.
Changes:
- Removed manual
includesentries fromphpstan.neon.dist. - Added
phpstan/extension-installertorequire-devand allowed it under Composerallow-plugins. - Updated
composer.lockto include the new plugin and reflect updated lock metadata.
Reviewed changes
Copilot reviewed 2 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| phpstan.neon.dist | Removes explicit Larastan/WordPress extension includes in favor of extension installer-based discovery. |
| composer.json | Allows the Composer plugin and adds phpstan/extension-installer as a dev dependency. |
| composer.lock | Locks the new plugin and updates lock metadata/platform overrides accordingly. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| parameters: | ||
| level: 8 |
There was a problem hiding this comment.
With the explicit Larastan and WordPress extension includes removed, PHPStan will no longer load those extensions unless the extension-installer generated config is included. Add an includes section that points to the extension-installer config (typically the file it generates under vendor/phpstan/extension-installer/) so phpstan-extension packages are still registered.
This pull request updates the project's static analysis tooling by adding the
phpstan/extension-installerpackage and making related configuration changes. The main goal is to simplify and automate the registration of PHPStan extensions.Dependency and configuration updates:
phpstan/extension-installerto therequire-devsection incomposer.jsonto automatically register PHPStan extensions.allow-pluginssection incomposer.jsonto permitphpstan/extension-installerto run as a Composer plugin.PHPStan configuration simplification:
phpstan.neon.dist, as these are now handled automatically by the extension installer.