diff --git a/composer.json b/composer.json index 4cbd8a5..b147952 100644 --- a/composer.json +++ b/composer.json @@ -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": { diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index 5023d14..271dbae 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -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 @@ -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 + diff --git a/phpstan.neon b/phpstan.neon index 42841fe..b3d4044 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -1,5 +1,5 @@ parameters: - level: max + level: 8 paths: - src - tests/KdybyTests