Skip to content

feat(phpstan): add support for phpstan - #323

Open
damienwebdev wants to merge 10 commits into
mainfrom
phpstan
Open

feat(phpstan): add support for phpstan#323
damienwebdev wants to merge 10 commits into
mainfrom
phpstan

Conversation

@damienwebdev

@damienwebdev damienwebdev commented Aug 10, 2026

Copy link
Copy Markdown
Member

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • Other... Please describe:

What is the current behavior?

Currently, we don't support using phpstan so we have less static analysis than we possibly could.

Fixes: N/A

What is the new behavior?

We use phpstan and @shochdoerfer 's https://github.com/bitExpert/phpstan-magento to statically analyze Magento further.

However, for backwards compatability, this task is disabled by default. It will likely become enabled in the future. Users can opt-in by adding one of the following (depending on what you're trying to do):

Check Store

.github/check-store.json

{
  "$schema": "https://raw.githubusercontent.com/graycoreio/github-actions-magento2/main/resolve-check-config/check-store.schema.json",
  "jobs": {
    "phpstan": true
  }
}

Check Extension

.github/check-extension.json

{
  "$schema": "[../resolve-check-config/check-extension.schema.json](https://raw.githubusercontent.com/graycoreio/github-actions-magento2/main/resolve-check-config/check-extension.schema.json)",
  "jobs": {
    "phpstan": true
  }
}

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

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.

1 participant