diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 55f26be..c29b0fb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -56,6 +56,10 @@ jobs: name: 'Check PHP coding standards' run: 'castor qa:cs' + - + name: 'Run PHPStan' + run: 'castor qa:phpstan' + - name: 'Test HTTP server' run: | diff --git a/README.md b/README.md index 14f0106..22a491b 100644 --- a/README.md +++ b/README.md @@ -142,7 +142,10 @@ We suggest to: 1. create a composer.json which requires only this tool in `tools//composer.json`; -1. create a symbolic link to the tool executable in `tools/bin/`: `ln -s ..//vendor/bin/ tools/bin/`; +1. create an executable symbolic link to the tool from the root directory of the project: `ln -s ..//vendor/bin/ tools/bin/`; + +> **Note** +> Relative symlinks works here, because the first part of the command is relative to the second part, not to the current directory. Since `tools/bin` path is appended to the `$PATH`, tools will be available globally in the builder container. diff --git a/phpstan.neon b/phpstan.neon index 0ab21da..e819040 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -11,7 +11,7 @@ parameters: # symfony: # container_xml_path: '%rootDir%/../../../../../application/var/cache/dev/App_KernelDevDebugContainer.xml' - + typeAliases: ContextData: ''' array{