You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: phpstan.neon.dist
+15Lines changed: 15 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -21,6 +21,16 @@ parameters:
21
21
identifier: if.condNotBoolean
22
22
message: '~^Only booleans are allowed in an if condition, mixed given\.$~'
23
23
count: 1
24
+
-
25
+
message: '~^Parameter #1 \$(redisAPI|redis) \(Redis\|RedisCluster\) of method malkusch\\lock\\mutex\\PHPRedisMutex::(add|evalScript)\(\) should be contravariant with parameter \$redisAPI \(mixed\) of method malkusch\\lock\\mutex\\RedisMutex::(add|evalScript)\(\)$~'
26
+
identifier: method.childParameterType
27
+
path: 'src/mutex/PHPRedisMutex.php'
28
+
count: 2
29
+
-
30
+
message: '~^Parameter #1 \$(redisAPI|client) \(Predis\\ClientInterface\) of method malkusch\\lock\\mutex\\PredisMutex::(add|evalScript)\(\) should be contravariant with parameter \$redisAPI \(mixed\) of method malkusch\\lock\\mutex\\RedisMutex::(add|evalScript)\(\)$~'
31
+
identifier: method.childParameterType
32
+
path: 'src/mutex/PredisMutex.php'
33
+
count: 2
24
34
-
25
35
path: 'tests/mutex/*Test.php'
26
36
identifier: empty.notAllowed
@@ -31,3 +41,8 @@ parameters:
31
41
identifier: method.deprecated
32
42
message: '~^Call to deprecated method getMockForAbstractClass\(\) of class PHPUnit\\Framework\\TestCase:\nhttps://github.com/sebastianbergmann/phpunit/issues/5241$~'
33
43
count: 8
44
+
-
45
+
path: 'tests/mutex/PredisMutexTest.php'
46
+
identifier: method.deprecated
47
+
message: '~^Call to deprecated method addMethods\(\) of class PHPUnit\\Framework\\MockObject\\MockBuilder:\nhttps://github.com/sebastianbergmann/phpunit/issues/5320$~'
0 commit comments