Skip to content

Commit a85ed2a

Browse files
committed
Use phpstan 0.11
1 parent 1f03ebc commit a85ed2a

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

composer.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@
2424
"doctrine/annotations": "^1.3.0",
2525
"eloquent/phony": "^3.0.0",
2626
"eloquent/phony-phpunit": "^4.0.0",
27-
"eloquent/phpstan-phony": "^0.3.0",
27+
"eloquent/phpstan-phony": "^0.4.0",
2828
"friendsofphp/php-cs-fixer": "^2.8.0",
2929
"kdyby/annotations": "^2.3.0",
3030
"kdyby/doctrine-cache": "^2.6.1",
3131
"latte/latte": "^2.4.0",
32-
"phpstan/phpstan": "^0.10.1",
33-
"phpstan/phpstan-nette": "^0.10.0",
34-
"phpstan/phpstan-strict-rules": "^0.10.0"
32+
"phpstan/phpstan": "^0.11.0",
33+
"phpstan/phpstan-nette": "^0.11.0",
34+
"phpstan/phpstan-strict-rules": "^0.11.0"
3535
},
3636
"autoload": {
3737
"psr-4": {

phpstan.neon

+7-3
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ parameters:
1010
- %rootDir%/../../../tests/_*
1111

1212
ignoreErrors:
13-
- '#^Call to an undefined method Nette\\Application\\UI\\Presenter::getVerifier\(\)#'
14-
- '#^Call to protected method createRequest\(\) of class Nette\\Application\\UI\\Presenter#'
15-
- '#^Method Tests\\Functional\\Classes\\ArticlePresenter::#'
13+
- '~^Call to an undefined method Nette\\Application\\UI\\Presenter::getVerifier\(\)~'
14+
- '~^Call to protected method createRequest\(\) of class Nette\\Application\\UI\\Presenter~'
15+
- '~^Method Tests\\Functional\\Classes\\ArticlePresenter::~'
16+
- '~^Parameter #2 \$destination of method Tests\\Functional\\Classes\\ArticlePresenter::~'
17+
- '~^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\(\)~'
18+
- '~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\(\)~'
19+
- '~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 commit comments

Comments
 (0)