@@ -15,12 +15,12 @@ parameters:
15
15
reportUnmatched : false
16
16
17
17
# We ignore this because resolve can either take a class name as the generic return type or just a binding name.
18
- - message : " #Template type T of function resolve[( )]{2} is not referenced in a parameter.#"
18
+ - message : " #Template type T of function resolve[\\ ( \\ )]{2} is not referenced in a parameter.#"
19
19
reportUnmatched : false
20
20
21
21
# We ignore new static errors because we want extensibility.
22
22
# @TODO: needs discussion.
23
- - message : " #^Unsafe usage of new static[( )]{2}.$#"
23
+ - message : " #^Unsafe usage of new static[\\ ( \\ )]{2}.$#"
24
24
reportUnmatched : false
25
25
- message : " #^Static access to instance property .*#"
26
26
reportUnmatched : false
@@ -34,11 +34,11 @@ parameters:
34
34
# and the implementation only accepts two of them, PHPStan complains.
35
35
# At the time of adding this error, there are no configuration values to make it
36
36
# ignore this error, so we have to ignore it globally.
37
- - message : ' #^Parameter \#[0-9]+ \$[A-z0-9_]+ of method Flarum\Extend\[A-z0-9_:\\( )]+ expects \(?callable\([A-z0-9_,|\\: ( )-]+\)\)?, (callable|Closure)\([A-z0-9_,|\\: ( )-]+\) given\.$#'
37
+ - message : ' #^Parameter \#[0-9]+ \$[A-z0-9_]+ of method Flarum\Extend\[A-z0-9_:\\\\(\\ )]+ expects \(?callable\([A-z0-9_,|\\: \\(\\ )-]+\)\)?, (callable|Closure)\([A-z0-9_,|\\: \\(\\ )-]+\) given\.$#'
38
38
reportUnmatched : false
39
39
40
40
# PHPStan suddenly doesn't recognize callables can be function names?
41
- - message : ' #^Parameter \#[0-9]+ \$[A-z0-9_]+ of function [A-z0-9_:\\( )]+ expects \(?callable\([A-z0-9_,|\\: ( )-]+, ' ' [A-z0-9_:\\( )]+' ' given\.$#'
41
+ - message : ' #^Parameter \#[0-9]+ \$[A-z0-9_]+ of function [A-z0-9_:\\\\(\\ )]+ expects \(?callable\([A-z0-9_,|\\: \\(\\ )-]+, ' ' [A-z0-9_:\\\\(\\ )]+' ' given\.$#'
42
42
reportUnmatched : false
43
43
44
44
# Not if we're using our own static make method.
0 commit comments