2016-01-07 18:33:37 -05:00
|
|
|
{
|
2016-11-21 17:08:17 -05:00
|
|
|
"name": "vimeo/psalm",
|
2016-01-07 18:33:37 -05:00
|
|
|
"type": "library",
|
2020-01-12 16:39:53 +01:00
|
|
|
"description": "A static analysis tool for finding errors in PHP applications",
|
|
|
|
"keywords": [
|
|
|
|
"php",
|
|
|
|
"code",
|
2023-02-15 12:27:14 -04:00
|
|
|
"inspection",
|
|
|
|
"static analysis"
|
2020-01-12 16:39:53 +01:00
|
|
|
],
|
2016-11-21 17:08:17 -05:00
|
|
|
"license": "MIT",
|
2016-01-07 18:33:37 -05:00
|
|
|
"authors": [
|
|
|
|
{
|
|
|
|
"name": "Matthew Brown"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"require": {
|
2022-11-24 19:30:11 +01:00
|
|
|
"php": "^7.4 || ~8.0.0 || ~8.1.0 || ~8.2.0",
|
2020-01-30 08:20:23 +01:00
|
|
|
"ext-SimpleXML": "*",
|
2021-08-27 10:57:30 +02:00
|
|
|
"ext-ctype": "*",
|
2020-01-12 16:39:53 +01:00
|
|
|
"ext-dom": "*",
|
2020-01-01 16:43:36 -05:00
|
|
|
"ext-json": "*",
|
|
|
|
"ext-libxml": "*",
|
2020-09-13 22:39:03 -04:00
|
|
|
"ext-mbstring": "*",
|
2021-08-27 11:00:49 +02:00
|
|
|
"ext-tokenizer": "*",
|
2021-03-11 10:40:23 +05:30
|
|
|
"amphp/amp": "^2.4.2",
|
2020-01-12 16:39:53 +01:00
|
|
|
"amphp/byte-stream": "^1.5",
|
2022-11-26 00:19:55 +01:00
|
|
|
"composer/package-versions-deprecated": "^1.10.0",
|
2021-03-28 23:45:45 -04:00
|
|
|
"composer/semver": "^1.4 || ^2.0 || ^3.0",
|
2022-11-26 00:19:55 +01:00
|
|
|
"composer/xdebug-handler": "^2.0 || ^3.0",
|
2020-09-01 16:20:24 +03:00
|
|
|
"dnoegel/php-xdg-base-dir": "^0.1.1",
|
2022-01-04 12:43:12 +02:00
|
|
|
"felixfbecker/advanced-json-rpc": "^3.1",
|
2022-11-26 00:19:55 +01:00
|
|
|
"felixfbecker/language-server-protocol": "^1.5.2",
|
2023-02-07 11:29:20 +01:00
|
|
|
"fidry/cpu-core-counter": "^0.4.1 || ^0.5.1",
|
2021-02-17 22:37:43 +01:00
|
|
|
"netresearch/jsonmapper": "^1.0 || ^2.0 || ^3.0 || ^4.0",
|
2021-10-09 23:37:04 +02:00
|
|
|
"nikic/php-parser": "^4.13",
|
2022-06-13 17:04:02 +02:00
|
|
|
"sebastian/diff": "^4.0 || ^5.0",
|
2023-02-18 12:44:16 +01:00
|
|
|
"spatie/array-to-xml": "^2.17.0 || ^3.0",
|
2022-11-26 00:19:55 +01:00
|
|
|
"symfony/console": "^4.1.6 || ^5.0 || ^6.0",
|
2022-12-22 13:06:21 -04:00
|
|
|
"symfony/filesystem": "^5.4 || ^6.0"
|
2020-01-12 16:39:53 +01:00
|
|
|
},
|
|
|
|
"provide": {
|
|
|
|
"psalm/psalm": "self.version"
|
|
|
|
},
|
|
|
|
"require-dev": {
|
2020-01-12 10:43:11 -05:00
|
|
|
"ext-curl": "*",
|
2022-01-04 12:43:12 +02:00
|
|
|
"bamarni/composer-bin-plugin": "^1.4",
|
2023-02-07 11:29:20 +01:00
|
|
|
"brianium/paratest": "^6.9",
|
2022-11-26 21:24:13 -04:00
|
|
|
"mockery/mockery": "^1.5",
|
2022-02-05 06:40:20 +02:00
|
|
|
"nunomaduro/mock-final-classes": "^1.1",
|
2021-02-13 00:03:03 +02:00
|
|
|
"php-parallel-lint/php-parallel-lint": "^1.2",
|
2022-11-26 21:24:13 -04:00
|
|
|
"phpstan/phpdoc-parser": "^1.6",
|
2023-02-07 11:29:20 +01:00
|
|
|
"phpunit/phpunit": "^9.6",
|
2022-11-25 20:15:54 -04:00
|
|
|
"psalm/plugin-mockery": "^1.1",
|
2022-11-04 19:04:23 +01:00
|
|
|
"psalm/plugin-phpunit": "^0.18",
|
2022-11-27 16:16:52 -04:00
|
|
|
"slevomat/coding-standard": "^8.4",
|
2022-01-04 12:43:12 +02:00
|
|
|
"squizlabs/php_codesniffer": "^3.6",
|
2022-11-26 00:19:55 +01:00
|
|
|
"symfony/process": "^4.4 || ^5.0 || ^6.0"
|
2020-01-12 16:39:53 +01:00
|
|
|
},
|
|
|
|
"suggest": {
|
2021-11-07 12:03:25 +09:00
|
|
|
"ext-igbinary": "^2.0.5 is required, used to serialize caching data",
|
|
|
|
"ext-curl": "In order to send data to shepherd"
|
2020-01-12 16:39:53 +01:00
|
|
|
},
|
|
|
|
"config": {
|
2021-12-13 17:45:32 +01:00
|
|
|
"allow-plugins": {
|
2021-12-13 17:59:32 +01:00
|
|
|
"bamarni/composer-bin-plugin": true,
|
2021-12-23 09:40:38 +01:00
|
|
|
"composer/package-versions-deprecated": true,
|
|
|
|
"dealerdirect/phpcodesniffer-composer-installer": true
|
2021-12-13 17:45:32 +01:00
|
|
|
},
|
2020-01-12 10:43:11 -05:00
|
|
|
"optimize-autoloader": true,
|
2020-12-29 14:01:22 +00:00
|
|
|
"sort-packages": true,
|
2022-11-26 02:57:49 -04:00
|
|
|
"platform-check": true
|
2020-01-12 16:39:53 +01:00
|
|
|
},
|
|
|
|
"extra": {
|
|
|
|
"branch-alias": {
|
2022-02-05 21:07:41 +09:00
|
|
|
"dev-master": "5.x-dev",
|
|
|
|
"dev-4.x": "4.x-dev",
|
2020-08-30 12:40:47 -04:00
|
|
|
"dev-3.x": "3.x-dev",
|
2020-01-12 16:39:53 +01:00
|
|
|
"dev-2.x": "2.x-dev",
|
|
|
|
"dev-1.x": "1.x-dev"
|
|
|
|
}
|
2016-01-07 18:33:37 -05:00
|
|
|
},
|
|
|
|
"autoload": {
|
|
|
|
"psr-4": {
|
2020-05-15 00:37:29 +02:00
|
|
|
"Psalm\\": "src/Psalm/"
|
2022-01-04 11:29:00 +02:00
|
|
|
}
|
2016-04-03 19:47:06 -04:00
|
|
|
},
|
|
|
|
"autoload-dev": {
|
|
|
|
"psr-4": {
|
2020-05-15 00:37:29 +02:00
|
|
|
"Psalm\\Tests\\": "tests/"
|
2016-01-07 18:33:37 -05:00
|
|
|
}
|
2016-10-20 11:54:55 -04:00
|
|
|
},
|
2020-01-12 16:39:53 +01:00
|
|
|
"repositories": [
|
|
|
|
{
|
|
|
|
"type": "path",
|
|
|
|
"url": "examples/plugins/composer-based/echo-checker"
|
|
|
|
}
|
|
|
|
],
|
2018-10-17 15:52:26 -04:00
|
|
|
"minimum-stability": "dev",
|
|
|
|
"prefer-stable": true,
|
2020-01-12 16:39:53 +01:00
|
|
|
"bin": [
|
|
|
|
"psalm",
|
|
|
|
"psalm-language-server",
|
|
|
|
"psalm-plugin",
|
|
|
|
"psalm-refactor",
|
|
|
|
"psalter"
|
|
|
|
],
|
2016-10-20 11:54:55 -04:00
|
|
|
"scripts": {
|
2022-12-14 20:26:17 -06:00
|
|
|
"cs": "phpcs -ps",
|
|
|
|
"cs-fix": "phpcbf -ps",
|
2021-11-30 22:31:16 +01:00
|
|
|
"lint": "parallel-lint ./src ./tests",
|
2022-12-21 09:06:11 -06:00
|
|
|
"phpunit": [
|
|
|
|
"Composer\\Config::disableProcessTimeout",
|
|
|
|
"paratest --runner=WrapperRunner"
|
|
|
|
],
|
|
|
|
"phpunit-std": [
|
|
|
|
"Composer\\Config::disableProcessTimeout",
|
|
|
|
"phpunit"
|
|
|
|
],
|
2022-06-22 12:59:47 +02:00
|
|
|
"verify-callmap": "phpunit tests/Internal/Codebase/InternalCallMapHandlerTest.php",
|
2022-12-22 08:43:55 -06:00
|
|
|
"psalm": "@php ./psalm",
|
2023-01-17 09:25:45 -05:00
|
|
|
"psalm-set-baseline": "@php ./psalm --set-baseline=psalm-baseline.xml",
|
2020-01-12 16:39:53 +01:00
|
|
|
"tests": [
|
2021-11-30 22:43:54 +01:00
|
|
|
"@lint",
|
2021-11-30 18:01:22 +01:00
|
|
|
"@cs",
|
2021-11-30 22:43:54 +01:00
|
|
|
"@psalm",
|
2021-11-30 18:01:22 +01:00
|
|
|
"@phpunit"
|
2017-05-26 23:26:14 +01:00
|
|
|
]
|
2021-11-30 17:17:53 +01:00
|
|
|
},
|
|
|
|
"scripts-descriptions": {
|
|
|
|
"cs": "Checks that the code conforms to the coding standard.",
|
|
|
|
"cs-fix": "Automatically correct coding standard violations.",
|
2021-11-30 22:31:16 +01:00
|
|
|
"lint": "Runs unit tests.",
|
2021-11-30 22:41:39 +01:00
|
|
|
"phpunit": "Runs unit tests in parallel.",
|
|
|
|
"phpunit-std": "Runs unit tests.",
|
2021-11-30 17:53:23 +01:00
|
|
|
"psalm": "Runs static analysis.",
|
2021-11-30 22:43:54 +01:00
|
|
|
"tests": "Runs all available tests."
|
2020-01-12 16:39:53 +01:00
|
|
|
}
|
2016-01-07 18:33:37 -05:00
|
|
|
}
|