Skip to content

Commit

Permalink
Use phpstan 0.11
Browse files Browse the repository at this point in the history
  • Loading branch information
enumag committed Jan 17, 2019
1 parent 078632a commit 1d577a5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
14 changes: 8 additions & 6 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -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\(\)~'

0 comments on commit 1d577a5

Please sign in to comment.