1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-30 04:39:00 +01:00
psalm/composer.json
Nicky Robinson 8e77ff1ce9 Throw error if magic getter or setter called for undefined property or invalid type specified with annotations (#500)
* Fix path to psalm

* If a magic getter or setter is used to access a property on a class
that is not defined but a `@property` annotation for the property
exists, throw an error. If no `@property` annotation exists, it's not
an error because you're allowed to make magic getters and setters do
crazy things.

Fixes #480

* Move logic to a better place to avoid duplicate checks

* Move logic into function

* Remove some nesting

* Check psalm-seal-properties and property type correctly
2018-02-09 19:37:09 -05:00

51 lines
1.5 KiB
JSON

{
"name": "vimeo/psalm",
"description": "A static analysis tool for finding errors in PHP applications",
"keywords": ["php", "code", "inspection"],
"type": "library",
"license": "MIT",
"authors": [
{
"name": "Matthew Brown"
}
],
"require": {
"php": "^5.6 || ^7.0",
"nikic/PHP-Parser": "^3.1.2",
"composer/composer": "^1.3|^1.4|^1.5",
"openlss/lib-array2xml": "^0.0.10||^0.5.1",
"muglug/package-versions-56": "1.2.3",
"php-cs-fixer/diff": "^1.2"
},
"bin": ["psalm", "psalter"],
"autoload": {
"psr-4": {
"Psalm\\": "src/Psalm"
}
},
"autoload-dev": {
"psr-4": {
"Psalm\\Tests\\": "tests"
}
},
"config": {
"optimize-autoloader": true
},
"require-dev": {
"phpunit/phpunit": "^5.7.4",
"friendsofphp/php-cs-fixer": "^2.3|^2.4|^2.5|^2.6|^2.7|^2.8|^2.9",
"squizlabs/php_codesniffer": "^3.0",
"php-coveralls/php-coveralls": "^2.0"
},
"scripts": {
"psalm": "./psalm",
"standards": "php ./vendor/friendsofphp/php-cs-fixer/php-cs-fixer fix --verbose --allow-risky=yes",
"tests": [
"php ./vendor/squizlabs/php_codesniffer/bin/phpcs",
"php ./vendor/friendsofphp/php-cs-fixer/php-cs-fixer fix --verbose --allow-risky=yes --dry-run .php_cs.dist",
"php ./vendor/friendsofphp/php-cs-fixer/php-cs-fixer fix --verbose --allow-risky=yes --dry-run",
"phpunit"
]
}
}