Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install PHPStan via composer and pin at 1.x #7916

Merged
merged 2 commits into from
Nov 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions .github/workflows/build-test-measure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -150,11 +150,13 @@ jobs:
- name: Setup PHP and Composer
uses: ./.github/actions/setup-php-composer
with:
tools: 'composer,phpstan'
tools: 'composer'
php-version: '8.1'

- name: Static Analysis (PHPStan)
run: phpstan analyze
run: |
vendor/bin/phpstan --version
vendor/bin/phpstan analyze

#-----------------------------------------------------------------------------------------------------------------------

Expand Down
10 changes: 1 addition & 9 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@
},
"require-dev": {
"automattic/vipwpcs": "^3.0",
"civicrm/composer-downloads-plugin": "^4.0",
"google/cloud-storage": "^1.0",
"mikey179/vfsstream": "1.6.12",
"mustache/mustache": "^2",
"php-stubs/wordpress-stubs": "^6.0",
"phpcompatibility/phpcompatibility-wp": "2.1.5",
"phpdocumentor/reflection": "^3.0",
"phpstan/phpstan": "^1.0",
"roave/security-advisories": "dev-latest",
"sirbrillig/phpcs-variable-analysis": "2.11.19",
"wp-cli/export-command": "^2.0",
Expand Down Expand Up @@ -69,7 +69,6 @@
},
"config": {
"allow-plugins": {
"civicrm/composer-downloads-plugin": true,
"cweagans/composer-patches": true,
"dealerdirect/phpcodesniffer-composer-installer": true
},
Expand All @@ -80,13 +79,6 @@
},
"extra": {
"composer-exit-on-patch-failure": true,
"downloads": {
"phpstan": {
"path": "vendor/bin/phpstan",
"type": "phar",
"url": "https://github.com/phpstan/phpstan/releases/latest/download/phpstan.phar"
}
},
"patches": {
"sabberworm/php-css-parser": {
"1. Validate name-start code points for identifier <https://github.com/westonruter/PHP-CSS-Parser/pull/2>": "https://github.com/sabberworm/PHP-CSS-Parser/compare/cc791ad...westonruter:PHP-CSS-Parser:fix/malformed-identifier-without-tests.diff",
Expand Down
153 changes: 59 additions & 94 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading