diff --git a/composer.json b/composer.json index 7fe311bb..d12596d7 100644 --- a/composer.json +++ b/composer.json @@ -15,11 +15,7 @@ "php": "^7.1", "acelaya/ze-content-based-error-handler": "^2.2", "cocur/slugify": "^3.0", - "doctrine/annotations": "^1.4", "doctrine/cache": "^1.6", - "doctrine/collections": "^1.4", - "doctrine/common": "^2.7", - "doctrine/dbal": "^2.5", "doctrine/migrations": "^1.4", "doctrine/orm": "^2.5", "endroid/qr-code": "^1.7", @@ -47,12 +43,12 @@ }, "require-dev": { "filp/whoops": "^2.0", - "infection/infection": "^0.8.1", - "phpstan/phpstan": "0.9", + "infection/infection": "^0.9.0", + "phpstan/phpstan": "^0.10.0", "phpunit/phpcov": "^5.0", "phpunit/phpunit": "^7.0", "slevomat/coding-standard": "^4.0", - "squizlabs/php_codesniffer": "^3.1 <3.2", + "squizlabs/php_codesniffer": "^3.2.3", "symfony/dotenv": "^4.0", "symfony/var-dumper": "^4.0", "zendframework/zend-component-installer": "^2.1", @@ -103,8 +99,8 @@ "phpcov merge build --html build/html" ], "stan": "phpstan analyse module/*/src/ --level=6 -c phpstan.neon", - "infect": "infection --threads=4 --min-msi=65 --only-covered --log-verbosity=2", - "infect-show": "infection --threads=4 --min-msi=65 --only-covered --log-verbosity=2 --show-mutations", + "infect": "infection --threads=4 --min-msi=55 --only-covered --log-verbosity=2", + "infect-show": "infection --threads=4 --min-msi=55 --only-covered --log-verbosity=2 --show-mutations", "expressive": "expressive" }, "config": { diff --git a/infection.json b/infection.json index 5f5fb65b..ceefd8ed 100644 --- a/infection.json +++ b/infection.json @@ -14,5 +14,9 @@ "tmpDir": "build/infection/temp", "phpUnit": { "configDir": "." + }, + "mutators": { + "@default": true, + "IdenticalEqual": false } } diff --git a/phpstan.neon b/phpstan.neon index 00a81049..c67d210b 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -2,3 +2,5 @@ parameters: excludes_analyse: - module/Common/src/Template/Extension/TranslatorExtension.php - module/Rest/src/Util/RestUtils.php + ignoreErrors: + - '#is not subtype of Throwable#'