Skip to content

Commit

Permalink
Try limiting psalm to version 5
Browse files Browse the repository at this point in the history
For some reason, Github actions is installing version 0.3.14 during its
QA check, and that version appears to crash with the error,

```
Uncaught Psalm\Exception\ConfigException: Error parsing file /home/runner/work/phpcs-variable-analysis/phpcs-variable-analysis/ on line 9: Element '{https://getpsalm.org/schema/config}psalm': No matching global declaration available for the validation root.
```
  • Loading branch information
sirbrillig committed Nov 18, 2024
1 parent 3cf0aa9 commit 5961f23
Showing 1 changed file with 62 additions and 62 deletions.
124 changes: 62 additions & 62 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,64 +1,64 @@
{
"name": "sirbrillig/phpcs-variable-analysis",
"description": "A PHPCS sniff to detect problems with variables.",
"type": "phpcodesniffer-standard",
"keywords" : [ "phpcs", "static analysis" ],
"license": "BSD-2-Clause",
"authors": [
{
"name": "Sam Graham",
"email": "php-codesniffer-variableanalysis@illusori.co.uk"
},
{
"name": "Payton Swick",
"email": "payton@foolord.com"
}
],
"support" : {
"issues": "https://github.com/sirbrillig/phpcs-variable-analysis/issues",
"wiki" : "https://github.com/sirbrillig/phpcs-variable-analysis/wiki",
"source": "https://github.com/sirbrillig/phpcs-variable-analysis"
},
"config": {
"sort-order": true,
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
},
"lock": false
},
"autoload": {
"psr-4": {
"VariableAnalysis\\": "VariableAnalysis/"
}
},
"autoload-dev": {
"psr-4": {
"VariableAnalysis\\Tests\\": "Tests/"
}
},
"minimum-stability": "dev",
"prefer-stable": true,
"scripts": {
"test": "./vendor/bin/phpunit --no-coverage",
"coverage": "./vendor/bin/phpunit",
"test-lte9": "./vendor/bin/phpunit -c phpunitlte9.xml.dist --no-coverage",
"coverage-lte9": "./vendor/bin/phpunit -c phpunitlte9.xml.dist",
"lint": "./vendor/bin/phpcs",
"fix": "./vendor/bin/phpcbf",
"phpstan": "./vendor/bin/phpstan analyse",
"psalm": "./vendor/bin/psalm --no-cache",
"static-analysis": "composer phpstan && composer psalm"
},
"require" : {
"php" : ">=5.4.0",
"squizlabs/php_codesniffer": "^3.5.6"
},
"require-dev": {
"phpunit/phpunit": "^4.8.36 || ^5.7.21 || ^6.5 || ^7.0 || ^8.0 || ^9.0 || ^10.5.32 || ^11.3.3",
"sirbrillig/phpcs-import-detection": "^1.1",
"phpcsstandards/phpcsdevcs": "^1.1",
"phpstan/phpstan": "^1.7",
"dealerdirect/phpcodesniffer-composer-installer": "^0.7 || ^1.0",
"vimeo/psalm": "^0.2 || ^0.3 || ^1.1 || ^4.24 || ^5.0"
}
"name": "sirbrillig/phpcs-variable-analysis",
"description": "A PHPCS sniff to detect problems with variables.",
"type": "phpcodesniffer-standard",
"keywords": ["phpcs", "static analysis"],
"license": "BSD-2-Clause",
"authors": [
{
"name": "Sam Graham",
"email": "php-codesniffer-variableanalysis@illusori.co.uk"
},
{
"name": "Payton Swick",
"email": "payton@foolord.com"
}
],
"support": {
"issues": "https://github.com/sirbrillig/phpcs-variable-analysis/issues",
"wiki": "https://github.com/sirbrillig/phpcs-variable-analysis/wiki",
"source": "https://github.com/sirbrillig/phpcs-variable-analysis"
},
"config": {
"sort-order": true,
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
},
"lock": false
},
"autoload": {
"psr-4": {
"VariableAnalysis\\": "VariableAnalysis/"
}
},
"autoload-dev": {
"psr-4": {
"VariableAnalysis\\Tests\\": "Tests/"
}
},
"minimum-stability": "dev",
"prefer-stable": true,
"scripts": {
"test": "./vendor/bin/phpunit --no-coverage",
"coverage": "./vendor/bin/phpunit",
"test-lte9": "./vendor/bin/phpunit -c phpunitlte9.xml.dist --no-coverage",
"coverage-lte9": "./vendor/bin/phpunit -c phpunitlte9.xml.dist",
"lint": "./vendor/bin/phpcs",
"fix": "./vendor/bin/phpcbf",
"phpstan": "./vendor/bin/phpstan analyse",
"psalm": "./vendor/bin/psalm --no-cache",
"static-analysis": "composer phpstan && composer psalm"
},
"require": {
"php": ">=5.4.0",
"squizlabs/php_codesniffer": "^3.5.6"
},
"require-dev": {
"phpunit/phpunit": "^4.8.36 || ^5.7.21 || ^6.5 || ^7.0 || ^8.0 || ^9.0 || ^10.5.32 || ^11.3.3",
"sirbrillig/phpcs-import-detection": "^1.1",
"phpcsstandards/phpcsdevcs": "^1.1",
"phpstan/phpstan": "^1.7",
"dealerdirect/phpcodesniffer-composer-installer": "^0.7 || ^1.0",
"vimeo/psalm": "^5.0"
}
}

0 comments on commit 5961f23

Please sign in to comment.