diff --git a/composer.json b/composer.json index a4551f6..2e190ab 100644 --- a/composer.json +++ b/composer.json @@ -21,7 +21,11 @@ }, "require-dev": { "nette/tester": "^2.3.1", - "xificurk/phpstan-shim": "^0.11.8", + "phpstan/phpstan": "^0.12.3", + "phpstan/phpstan-strict-rules": "^0.12.0", + "pepakriz/phpstan-exception-rules": "^0.10.1", + "phpstan/phpstan-nette": "^0.12.0", + "damejidlo/phpstan-nette-tester": "^0.2.0", "jakub-onderka/php-parallel-lint": "^1.0", "nepada/coding-standard": "^6.3.0" }, diff --git a/phpstan.neon.dist b/phpstan.neon.dist index 42c9ccd..f9eaa6b 100644 --- a/phpstan.neon.dist +++ b/phpstan.neon.dist @@ -1,13 +1,13 @@ includes: - - phar://phpstan.phar/vendor/pepakriz/phpstan-exception-rules/extension.neon - - phar://phpstan.phar/vendor/phpstan/phpstan-nette/extension.neon - - phar://phpstan.phar/vendor/phpstan/phpstan-nette/rules.neon - - phar://phpstan.phar/vendor/phpstan/phpstan-strict-rules/rules.neon + - vendor/phpstan/phpstan-strict-rules/rules.neon + - vendor/pepakriz/phpstan-exception-rules/extension.neon + - vendor/phpstan/phpstan-nette/extension.neon + - vendor/phpstan/phpstan-nette/rules.neon parameters: level: max paths: - - %currentWorkingDirectory%/src + - src exceptionRules: uncheckedExceptions: diff --git a/phpstan.tests.neon.dist b/phpstan.tests.neon.dist index 13b22e2..f1e9f0a 100644 --- a/phpstan.tests.neon.dist +++ b/phpstan.tests.neon.dist @@ -1,20 +1,21 @@ includes: - - phar://phpstan.phar/vendor/phpstan/phpstan-nette/extension.neon - - phar://phpstan.phar/vendor/phpstan/phpstan-nette/rules.neon - - phar://phpstan.phar/vendor/phpstan/phpstan-strict-rules/rules.neon + - vendor/phpstan/phpstan-strict-rules/rules.neon + - vendor/phpstan/phpstan-nette/extension.neon + - vendor/phpstan/phpstan-nette/rules.neon + - vendor/damejidlo/phpstan-nette-tester/extension.neon parameters: level: max paths: - - %currentWorkingDirectory%/tests + - tests fileExtensions: - php - phpt autoload_directories: - - %currentWorkingDirectory%/tests + - tests excludes_analyse: - - %currentWorkingDirectory%/tests/bootstrap.php - - %currentWorkingDirectory%/tests/temp/* + - tests/bootstrap.php + - tests/temp/*