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 1f03ebc commit a85ed2a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@
"doctrine/annotations": "^1.3.0",
"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",
"kdyby/annotations": "^2.3.0",
"kdyby/doctrine-cache": "^2.6.1",
"latte/latte": "^2.4.0",
"phpstan/phpstan": "^0.10.1",
"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
10 changes: 7 additions & 3 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ parameters:
- %rootDir%/../../../tests/_*

ignoreErrors:
- '#^Call to an undefined method Nette\\Application\\UI\\Presenter::getVerifier\(\)#'
- '#^Call to protected method createRequest\(\) of class Nette\\Application\\UI\\Presenter#'
- '#^Method Tests\\Functional\\Classes\\ArticlePresenter::#'
- '~^Call to an undefined method Nette\\Application\\UI\\Presenter::getVerifier\(\)~'
- '~^Call to protected method createRequest\(\) of class Nette\\Application\\UI\\Presenter~'
- '~^Method Tests\\Functional\\Classes\\ArticlePresenter::~'
- '~^Parameter #2 \$destination of method Tests\\Functional\\Classes\\ArticlePresenter::~'
- '~^Return type \(mixed\) of method Tests\\Functional\\Classes\\ArticlePresenter::createRequest\(\) should be covariant with return type \(string\|null\) of method Nette\\Application\\UI\\Presenter::createRequest\(\)~'
- '~Parameter #1 \$reflection \(ReflectionClass\|ReflectionMethod\) of method Tests\\Functional\\Classes\\[a-zA-Z]++::checkRequirements\(\) should be contravariant with parameter \$element \(mixed\) of method Nette\\Application\\UI\\(?:Component|Presenter)::checkRequirements\(\)~'
- '~Parameter #1 \$component \(Nette\\ComponentModel\\IComponent\) of method Tests\\Functional\\Classes\\[a-zA-Z]++::attached\(\) should be contravariant with parameter \$presenter \(mixed\) of method Nette\\Application\\UI\\Component::attached\(\)~'

0 comments on commit a85ed2a

Please sign in to comment.