Search for function calls to debug functions like dump() with PHPstan

This should (hopefully) issues like #35.
This commit is contained in:
Jan Böhmer 2020-04-06 18:26:42 +02:00
parent 5a733b3261
commit f04cb9d3e9
3 changed files with 67 additions and 1 deletions

View file

@ -60,6 +60,7 @@
"require-dev": {
"dama/doctrine-test-bundle": "^6.0",
"doctrine/doctrine-fixtures-bundle": "^3.2",
"ekino/phpstan-banned-code": "^0.3.1",
"phpstan/extension-installer": "^1.0",
"phpstan/phpstan": "^0.12.8",
"phpstan/phpstan-doctrine": "^0.12.9",

64
composer.lock generated
View file

@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"content-hash": "482b6aa7bcf3371c734025dc6f151ac1",
"content-hash": "755fbfdb39318d6425c060cf3a52fb61",
"packages": [
{
"name": "beberlei/assert",
@ -9354,6 +9354,68 @@
],
"time": "2019-10-24T07:13:31+00:00"
},
{
"name": "ekino/phpstan-banned-code",
"version": "v0.3.1",
"source": {
"type": "git",
"url": "https://github.com/ekino/phpstan-banned-code.git",
"reference": "a266c3d28f355643067fe0da07097b17621fc558"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/ekino/phpstan-banned-code/zipball/a266c3d28f355643067fe0da07097b17621fc558",
"reference": "a266c3d28f355643067fe0da07097b17621fc558",
"shasum": ""
},
"require": {
"php": "^7.1",
"phpstan/phpstan": "^0.12"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^2.12",
"localheinz/composer-normalize": "^1.3",
"nikic/php-parser": "^4.3",
"phpstan/phpstan-phpunit": "^0.12",
"phpunit/phpunit": "^7.2",
"sensiolabs/security-checker": "^5.0",
"symfony/var-dumper": "^4.3"
},
"type": "phpstan-extension",
"extra": {
"branch-alias": {
"dev-master": "0.10-dev"
},
"phpstan": {
"includes": [
"extension.neon"
]
}
},
"autoload": {
"psr-4": {
"Ekino\\PHPStanBannedCode\\": "src"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Rémi Marseille",
"email": "remi.marseille@ekino.com",
"homepage": "https://www.ekino.com"
}
],
"description": "Detected banned code using PHPStan",
"homepage": "https://github.com/ekino/phpstan-banned-code",
"keywords": [
"PHPStan",
"code quality"
],
"time": "2020-01-17T13:08:23+00:00"
},
{
"name": "felixfbecker/advanced-json-rpc",
"version": "v3.1.1",

View file

@ -135,6 +135,9 @@
"egulias/email-validator": {
"version": "2.1.11"
},
"ekino/phpstan-banned-code": {
"version": "v0.3.1"
},
"felixfbecker/advanced-json-rpc": {
"version": "v3.0.4"
},