Skip to content

Remove unnecessary testing and static analysis dependencies - #57

Merged
mychidarko merged 1 commit into
leafsphp:v5.xfrom
fadrian06:clean-dev-requires
Oct 20, 2026
Merged

mychidarko merged 1 commit into
leafsphp:v5.xfrom
fadrian06:clean-dev-requires

Conversation

@fadrian06

Copy link
Copy Markdown
Contributor

What kind of change does this PR introduce? (pls check at least one)

  • Bugfix
  • Feature
  • Code style update
  • Refactor
  • Build-related changes
  • Other, please describe below

pestphp/pest, friendsofphp/php-cs-fixer are already required by leafs/billing.

phpstan/phpstan is required by rector/rector and phpstan/extension-installer was not being used

Description

This pull request simplifies the development dependencies in the composer.json file by removing several tools related to static analysis and code style, as well as updating the plugin configuration.

Development dependency cleanup:

  • Removed phpstan/phpstan and phpstan/extension-installer from the require-dev section, which means PHPStan static analysis will no longer be available as a development dependency.
  • Removed friendsofphp/php-cs-fixer from the require-dev section, so PHP CS Fixer for code style checks is no longer included.
  • Removed pestphp/pest from the require-dev section, which means the Pest testing framework is no longer a development dependency.

Configuration update:

  • Updated the allow-plugins section to remove phpstan/extension-installer, reflecting the removal of PHPStan-related dependencies.

Does this PR introduce a breaking change? (check one)

  • Yes
  • No

Copilot AI lite review requested due to automatic review settings September 11, 2026 01:34

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

馃煝 Approval recommended

The reviewed dependency cleanup is complete with no unresolved blocking issues.

Pull request overview

Removes redundant development dependencies and the unused PHPStan plugin configuration from composer.json.

Changes:

  • Removes Pest, PHP CS Fixer, PHPStan, and the PHPStan extension installer.
  • Removes the PHPStan plugin allowlist entry.
File summaries
File Description
composer.json Simplifies development dependencies and plugin configuration.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 0
  • Review effort level: Lite

馃挕 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@mychidarko mychidarko left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tests only passed here because leafs/billing v5.0 wrongly listed pestphp/pest and php-cs-fixer in its require. billing v5.0.1 dropped them, so a fresh install of this branch no longer gets Pest or php-cs-fixer, and alchemy test / alchemy lint need both (alchemy itself doesn't pull them in). Please keep pestphp/pest and friendsofphp/php-cs-fixer in require-dev. Dropping phpstan/phpstan is fine since rector requires it, but if you remove phpstan/extension-installer, check that alchemy analyse still picks up its config.

@mychidarko mychidarko left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Correction to my earlier review: Alchemy v5 installs its tools lazily (Pest on the first composer run test, PHPStan on the first analyse), so these don't need to be in require-dev. Approving. The only failing check is lint, which is the checkout bug fixed in #58; a rebase on v5.x should clear it.

Remove Pest, PHP-CS-Fixer, and PHPStan from composer.json to
streamline the development environment. These tools are no longer
required for the project's current workflow.
@mychidarko
mychidarko merged commit 6d12116 into leafsphp:v5.x Oct 20, 2026
4 checks passed
@fadrian06
fadrian06 deleted the clean-dev-requires branch October 20, 2026 16:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants