Skip to content

Commit

Permalink
Update PHPStan
Browse files Browse the repository at this point in the history
  • Loading branch information
xificurk committed Nov 8, 2021
1 parent 36a62a2 commit 38d5a0a
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 7 deletions.
10 changes: 5 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@
"nette/bootstrap": "^3.0",
"nette/robot-loader": "^3.2",
"nette/tester": "^2.4.1",
"phpstan/phpstan": "^0.12.99",
"phpstan/phpstan-nette": "^0.12.21",
"php-parallel-lint/php-parallel-lint": "^1.3",
"squizlabs/php_codesniffer": "^3.6",
"slevomat/coding-standard": "^7.0"
"phpstan/phpstan": "^1.1.1",
"phpstan/phpstan-nette": "^1.0.0",
"php-parallel-lint/php-parallel-lint": "^1.3.1",
"squizlabs/php_codesniffer": "^3.6.1",
"slevomat/coding-standard": "^7.0.16"
},
"autoload": {
"psr-0": {
Expand Down
23 changes: 22 additions & 1 deletion phpstan-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,26 @@ parameters:
count: 1
path: src/Kdyby/Autowired/PhpDocParser.php

-
message: "#^Property KdybyTests\\\\Autowired\\\\PropertiesFixtures\\\\AutowireAnnotationPresenter\\:\\:\\$aliasedAnnotatedService \\(KdybyTests\\\\Autowired\\\\PropertiesFixtures\\\\UseExpansion\\\\ImportedService\\) in isset\\(\\) is not nullable\\.$#"
count: 1
path: tests/KdybyTests/Autowired/AutowirePropertiesTest.phpt

-
message: "#^Property KdybyTests\\\\Autowired\\\\PropertiesFixtures\\\\AutowireAnnotationPresenter\\:\\:\\$aliasedAnnotatedServiceInTrait \\(KdybyTests\\\\Autowired\\\\PropertiesFixtures\\\\UseExpansion\\\\ImportedService\\) in isset\\(\\) is not nullable\\.$#"
count: 1
path: tests/KdybyTests/Autowired/AutowirePropertiesTest.phpt

-
message: "#^Property KdybyTests\\\\Autowired\\\\PropertiesFixtures\\\\AutowireAnnotationPresenter\\:\\:\\$annotatedService \\(KdybyTests\\\\Autowired\\\\PropertiesFixtures\\\\SampleService\\) in isset\\(\\) is not nullable\\.$#"
count: 1
path: tests/KdybyTests/Autowired/AutowirePropertiesTest.phpt

-
message: "#^Property KdybyTests\\\\Autowired\\\\PropertiesFixtures\\\\AutowireAnnotationPresenter\\:\\:\\$fqnAnnotatedService \\(KdybyTests\\\\Autowired\\\\PropertiesFixtures\\\\SampleService\\) in isset\\(\\) is not nullable\\.$#"
count: 1
path: tests/KdybyTests/Autowired/AutowirePropertiesTest.phpt

-
message: "#^Call to an undefined method KdybyTests\\\\Autowired\\\\ComponentFactoriesFixtures\\\\NonPresenterComponent\\:\\:getComponents\\(\\)\\.$#"
count: 1
Expand All @@ -26,6 +46,7 @@ parameters:
path: tests/KdybyTests/Autowired/PropertiesFixtures/NonPresenterComponent.php

-
message: "#^Property KdybyTests\\\\Autowired\\\\PropertiesFixtures\\\\WithMissingPropertyTypePresenter\\:\\:\\$service has no typehint specified\\.$#"
message: "#^Property KdybyTests\\\\Autowired\\\\PropertiesFixtures\\\\WithMissingPropertyTypePresenter\\:\\:\\$service has no type specified\\.$#"
count: 1
path: tests/KdybyTests/Autowired/PropertiesFixtures/WithMissingPropertyTypePresenter.php

2 changes: 1 addition & 1 deletion phpstan.neon
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
parameters:
level: max
level: 8
paths:
- src
- tests/KdybyTests
Expand Down

0 comments on commit 38d5a0a

Please sign in to comment.