File tree Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -13,16 +13,15 @@ setup: install-phive
13
13
14
14
.PHONY : phpcs
15
15
phpcs :
16
- docker run -it --rm -v${PWD} :/opt/project -w /opt/project phpdoc/phpcs-ga:v1.0.0 -s
16
+ docker run -it --rm -v${PWD} :/opt/project -w /opt/project phpdoc/phpcs-ga:latest -s
17
17
18
18
.PHONY : phpstan
19
19
phpstan :
20
20
docker run -it --rm -v${PWD} :/opt/project -w /opt/project phpdoc/phpstan-ga:latest analyse src --no-progress --configuration phpstan.neon
21
21
22
22
.PHONY : psaml
23
23
psalm :
24
- docker run -it --rm -v${PWD} :/opt/project -w /opt/project mickaelandrieu/psalm-ga
25
-
24
+ docker run -it --rm -v${PWD} :/opt/project -w /opt/project php:7.2 tools/psalm
26
25
.PHONY : test
27
26
test :
28
27
docker run -it --rm -v${PWD} :/opt/project -w /opt/project php:7.2 tools/phpunit
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" UTF-8" ?>
2
2
<phive xmlns =" https://phar.io/phive" >
3
3
<phar name =" phpunit" version =" ^8.4" installed =" 8.4.3" location =" ./tools/phpunit" copy =" true" />
4
+ <phar name =" psalm" version =" ^3.7.2" installed =" 3.7.2" location =" ./tools/psalm" copy =" true" />
4
5
</phive >
Original file line number Diff line number Diff line change @@ -64,7 +64,6 @@ final class ContextFactory
64
64
public function createFromReflector (Reflector $ reflector ) : Context
65
65
{
66
66
if ($ reflector instanceof ReflectionClass) {
67
- /** @var ReflectionClass<object> $reflector */
68
67
return $ this ->createFromReflectionClass ($ reflector );
69
68
}
70
69
@@ -91,7 +90,9 @@ private function createFromReflectionParameter(ReflectionParameter $parameter) :
91
90
{
92
91
$ class = $ parameter ->getDeclaringClass ();
93
92
if ($ class ) {
93
+ //phpcs:ignore SlevomatCodingStandard.Commenting.InlineDocCommentDeclaration.MissingVariable
94
94
/** @var ReflectionClass<object> $class */
95
+
95
96
return $ this ->createFromReflectionClass ($ class );
96
97
}
97
98
@@ -114,7 +115,7 @@ private function createFromReflectionClassConstant(ReflectionClassConstant $cons
114
115
}
115
116
116
117
/**
117
- * @param ReflectionClass<object> $class
118
+ * @phpstan- param ReflectionClass<object> $class
118
119
*/
119
120
private function createFromReflectionClass (ReflectionClass $ class ) : Context
120
121
{
You can’t perform that action at this time.
0 commit comments