diff --git a/composer.json b/composer.json index 3ac99c0..dae84f3 100644 --- a/composer.json +++ b/composer.json @@ -28,13 +28,13 @@ "contributte/codeception": "^1.0.1", "eloquent/phony": "^3.0.0", "eloquent/phony-phpunit": "^4.0.0", - "eloquent/phpstan-phony": "^0.3.0", + "eloquent/phpstan-phony": "^0.4.0", "friendsofphp/php-cs-fixer": "^2.8.0", "nette/security": "^2.4.0", "nextras/secured-links": "^1.3.0", - "phpstan/phpstan": "^0.10.0", - "phpstan/phpstan-nette": "^0.10.0", - "phpstan/phpstan-strict-rules": "^0.10.0" + "phpstan/phpstan": "^0.11.0", + "phpstan/phpstan-nette": "^0.11.0", + "phpstan/phpstan-strict-rules": "^0.11.0" }, "autoload": { "psr-4": { diff --git a/phpstan.neon b/phpstan.neon index d331b6e..f6d637a 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -10,9 +10,11 @@ parameters: - %rootDir%/../../../tests/_* ignoreErrors: - - '#^Parameter \$[a-zA-Z]++ of method Tests\\Unit\\Classes\\[a-zA-Z]++::[a-zA-Z]++\(\) has invalid typehint type Tests\\Unit\\Classes\\[a-zA-Z0-9]++#' - - '#^Property Tests\\Unit\\Classes\\[a-zA-Z]++::\$[a-zA-Z0-9]++ has unknown class Tests\\Unit\\Classes\\[a-zA-Z0-9]++ as its type#' - - '#^Return typehint of method Tests\\Unit\\Classes\\TestPresenter::createComponentNonexistentComponent\(\) has invalid type Tests\\Unit\\Classes\\NonexistentComponent#' - - '#^Access to an undefined property object::\$value#' - - '#^Method Tests\\Unit\\Classes\\TestPresenter::#' - - '#^Method Tests\\Functional\\Fixtures\\ArticlePresenter::#' + - '~^Parameter \$[a-zA-Z]++ of method Tests\\Unit\\Classes\\[a-zA-Z]++::[a-zA-Z]++\(\) has invalid typehint type Tests\\Unit\\Classes\\[a-zA-Z0-9]++~' + - '~^Property Tests\\Unit\\Classes\\[a-zA-Z]++::\$[a-zA-Z0-9]++ has unknown class Tests\\Unit\\Classes\\[a-zA-Z0-9]++ as its type~' + - '~^Return typehint of method Tests\\Unit\\Classes\\TestPresenter::createComponentNonexistentComponent\(\) has invalid type Tests\\Unit\\Classes\\NonexistentComponent~' + - '~^Access to an undefined property object::\$value~' + - '~^Method Tests\\Unit\\Classes\\TestPresenter::~' + - '~^Method Tests\\Functional\\Fixtures\\ArticlePresenter::~' + - '~^PHPDoc tag @var for property Tests\\Functional\\[a-zA-Z]++::\$tester contains unresolvable type~' + - '~^Parameter #1 \$key \(string\) of method Tests\\Functional\\Fixtures\\ArticlePresenter::restoreRequest\(\) should be contravariant with parameter \$key \(mixed\) of method Nette\\Application\\UI\\Presenter::restoreRequest\(\)~'