mirror of
https://github.com/danog/psalm.git
synced 2024-11-26 20:34:47 +01:00
f6983fd883
if a composer.json is present and a PHP version requirement is configured, we set the php version to the minimal PHP version that satisfies the composer requirement. Additionally, this adds a `phpVersion` attribute to the <psalm> tag. If that's set, it takes precedence over what has been detected in composer.json. And finally, the --php-version command line flag continues to work and takes precedence over the setting in the <psalm> tag this fixes #2628
110 lines
2.7 KiB
JSON
110 lines
2.7 KiB
JSON
{
|
|
"name": "vimeo/psalm",
|
|
"type": "library",
|
|
"description": "A static analysis tool for finding errors in PHP applications",
|
|
"keywords": [
|
|
"php",
|
|
"code",
|
|
"inspection"
|
|
],
|
|
"license": "MIT",
|
|
"authors": [
|
|
{
|
|
"name": "Matthew Brown"
|
|
}
|
|
],
|
|
"require": {
|
|
"php": "^7.1.3|^8",
|
|
"ext-SimpleXML": "*",
|
|
"ext-dom": "*",
|
|
"ext-json": "*",
|
|
"ext-libxml": "*",
|
|
"ext-tokenizer": "*",
|
|
"amphp/amp": "^2.1",
|
|
"amphp/byte-stream": "^1.5",
|
|
"composer/semver": "^1.5",
|
|
"composer/xdebug-handler": "^1.1",
|
|
"felixfbecker/advanced-json-rpc": "^3.0.3",
|
|
"felixfbecker/language-server-protocol": "^1.4",
|
|
"netresearch/jsonmapper": "^1.0",
|
|
"nikic/php-parser": "^4.3",
|
|
"ocramius/package-versions": "^1.2",
|
|
"openlss/lib-array2xml": "^1.0",
|
|
"sebastian/diff": "^3.0",
|
|
"symfony/console": "^3.4.17 || ^4.1.6 || ^5.0",
|
|
"webmozart/glob": "^4.1",
|
|
"webmozart/path-util": "^2.3"
|
|
},
|
|
"provide": {
|
|
"psalm/psalm": "self.version"
|
|
},
|
|
"require-dev": {
|
|
"bamarni/composer-bin-plugin": "^1.2",
|
|
"ext-curl": "*",
|
|
"phpmyadmin/sql-parser": "^5.0",
|
|
"phpspec/prophecy": ">=1.9.0",
|
|
"phpunit/phpunit": "^7.5.16 || ^8.0",
|
|
"psalm/plugin-phpunit": "^0.6",
|
|
"slevomat/coding-standard": "^5.0",
|
|
"squizlabs/php_codesniffer": "^3.5",
|
|
"symfony/process": "^4.3"
|
|
},
|
|
"suggest": {
|
|
"ext-igbinary": "^2.0.5"
|
|
},
|
|
"config": {
|
|
"optimize-autoloader": true,
|
|
"sort-packages": true
|
|
},
|
|
"extra": {
|
|
"branch-alias": {
|
|
"dev-master": "3.x-dev",
|
|
"dev-2.x": "2.x-dev",
|
|
"dev-1.x": "1.x-dev"
|
|
}
|
|
},
|
|
"autoload": {
|
|
"psr-4": {
|
|
"Psalm\\Plugin\\": "src/Psalm/Plugin",
|
|
"Psalm\\": "src/Psalm"
|
|
},
|
|
"files": [
|
|
"src/functions.php",
|
|
"src/spl_object_id.php"
|
|
]
|
|
},
|
|
"autoload-dev": {
|
|
"psr-4": {
|
|
"Psalm\\Tests\\": "tests"
|
|
}
|
|
},
|
|
"repositories": [
|
|
{
|
|
"type": "path",
|
|
"url": "examples/plugins/composer-based/echo-checker"
|
|
}
|
|
],
|
|
"minimum-stability": "dev",
|
|
"prefer-stable": true,
|
|
"bin": [
|
|
"psalm",
|
|
"psalm-language-server",
|
|
"psalm-plugin",
|
|
"psalm-refactor",
|
|
"psalter"
|
|
],
|
|
"scripts": {
|
|
"all-tests": [
|
|
"phpcs",
|
|
"./psalm --find-dead-code",
|
|
"phpunit"
|
|
],
|
|
"psalm": "./psalm --find-dead-code",
|
|
"standards": "phpcs",
|
|
"tests": [
|
|
"phpcs",
|
|
"phpunit"
|
|
]
|
|
}
|
|
}
|