Sign inSign up

aragon999/phpstan-shopware

By aragon999

Updated about 2 months ago

Image
1

10K+

aragon999/phpstan-shopware repository overview

What is this?

Use a prebuilt phpstan Docker image to analyse Shopware 6 plugins.

Usage

On local setups

docker run --rm -v /path/to/the/plugin:/app aragon999/phpstan-shopware:v6.2.0 analyze --level 5 .

In Github actions

This will use the latest stable Shopware release and the latest PHPStan release.

name: Run PHPStan

on:
  push:

jobs:
  phpstan:
    runs-on: ubuntu-latest

    steps:
      - name: Clone
        uses: actions/checkout@v2

      - name: Run PHPStan
        uses: aragon999/phpstan-shopware-docker@master

In Gitlab CI

This will use the Shopware version v6.2.2 with the latest PHPStan:

image:
  name: aragon999/phpstan-shopware:v6.2.2
  entrypoint: [""]

lint:plugin:
  script:
    - phpstan analyze .

Tag summary

Content type

Image

Digest

sha256:39d921afc

Size

114.6 MB

Last updated

about 2 months ago

docker pull aragon999/phpstan-shopware:v6.6.7