diff --git a/composer.json b/composer.json index ac55acfb57..7068e3e484 100644 --- a/composer.json +++ b/composer.json @@ -34,7 +34,8 @@ "twig/twig": "^3.0" }, "require-dev": { - "phpstan/phpstan": "1.6.9", + "phpstan/phpstan": "^1.10", + "phpstan/phpstan-deprecation-rules": "^1.1.3", "junker/debugbar-smarty": "^0.2.1", "hannesvdvreken/guzzle-debugbar": "^4.0.1", "fakerphp/faker": "^1.21", diff --git a/dev/phpstan.neon b/dev/phpstan.neon index 1822b1d9c8..2610ad8a06 100644 --- a/dev/phpstan.neon +++ b/dev/phpstan.neon @@ -22,3 +22,6 @@ parameters: message: '#Cannot access property \$id on object\|false.#' path: ../modules/Core/pages/panel/users_reports.php reportUnmatchedIgnoredErrors: false +includes: + - ../vendor/phpstan/phpstan-deprecation-rules/rules.neon + - phar://phpstan.phar/conf/bleedingEdge.neon