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
# Some errors ignored are specific to a php version so they're reported as unmatched when phpstan is ran with a
11
-
# different php version
12
-
reportUnmatchedIgnoredErrors:false
13
-
14
-
treatPhpDocTypesAsCertain:false
15
5
ignoreErrors:
16
-
# Missing strict comparison
17
-
- '#^Construct empty\(\) is not allowed. Use more strict comparison.$#'
18
-
19
-
# thecodingmachine/safe and thecodingmachine/phpstan-safe-rule don't support 8.1 Pspell
6
+
# php 8.1 code
20
7
-
21
8
message:"#^Function pspell_config_create is unsafe to use\\. It can return FALSE instead of throwing an exception\\. Please add 'use function Safe\\\\pspell_config_create;' at the beginning of the file to use the variant provided by the 'thecodingmachine/safe' library\\.$#"
22
9
count:1
@@ -37,16 +24,6 @@ parameters:
37
24
count:1
38
25
path:src/Spellchecker/PHPPspell.php
39
26
40
-
-
41
-
message:"#^Parameter \\#1 \\$dictionary of function pspell_check expects int, int\\|false given\\.$#"
42
-
count:1
43
-
path:src/Spellchecker/PHPPspell.php
44
-
45
-
-
46
-
message:"#^Parameter \\#1 \\$dictionary of function pspell_suggest expects int, int\\|false given\\.$#"
47
-
count:1
48
-
path:src/Spellchecker/PHPPspell.php
49
-
50
27
-
51
28
message:"#^Parameter \\#1 \\$conf of function pspell_config_ignore expects int, int\\|false given\\.$#"
52
29
count:1
@@ -71,3 +48,9 @@ parameters:
71
48
message:"#^Parameter \\#1 \\$pspell of function pspell_suggest expects int, int\\|false given\\.$#"
72
49
count:1
73
50
path:src/Spellchecker/PHPPspell.php
51
+
52
+
# preg_match_all can be null in php >8
53
+
-
54
+
message:"#^Casting to int something that's already int\\.$#"
message:"#^Function pspell_config_create is unsafe to use\\. It can return FALSE instead of throwing an exception\\. Please add 'use function Safe\\\\pspell_config_create;' at the beginning of the file to use the variant provided by the 'thecodingmachine/safe' library\\.$#"
8
+
count:1
9
+
path:src/Spellchecker/PHPPspell.php
10
+
11
+
-
12
+
message:"#^Function pspell_config_ignore is unsafe to use\\. It can return FALSE instead of throwing an exception\\. Please add 'use function Safe\\\\pspell_config_ignore;' at the beginning of the file to use the variant provided by the 'thecodingmachine/safe' library\\.$#"
13
+
count:1
14
+
path:src/Spellchecker/PHPPspell.php
15
+
16
+
-
17
+
message:"#^Function pspell_config_mode is unsafe to use\\. It can return FALSE instead of throwing an exception\\. Please add 'use function Safe\\\\pspell_config_mode;' at the beginning of the file to use the variant provided by the 'thecodingmachine/safe' library\\.$#"
18
+
count:1
19
+
path:src/Spellchecker/PHPPspell.php
20
+
21
+
-
22
+
message:"#^Function pspell_new_config is unsafe to use\\. It can return FALSE instead of throwing an exception\\. Please add 'use function Safe\\\\pspell_new_config;' at the beginning of the file to use the variant provided by the 'thecodingmachine/safe' library\\.$#"
23
+
count:1
24
+
path:src/Spellchecker/PHPPspell.php
25
+
26
+
-
27
+
message:"#^Parameter \\#1 \\$dictionary of function pspell_check expects PSpell\\\\Dictionary, PSpell\\\\Dictionary\\|false given\\.$#"
28
+
count:1
29
+
path:src/Spellchecker/PHPPspell.php
30
+
31
+
-
32
+
message:"#^Parameter \\#1 \\$dictionary of function pspell_check expects PSpell\\\\Dictionary, int given\\.$#"
33
+
count:1
34
+
path:src/Spellchecker/PHPPspell.php
35
+
36
+
-
37
+
message:"#^Parameter \\#1 \\$dictionary of function pspell_suggest expects PSpell\\\\Dictionary, PSpell\\\\Dictionary\\|false given\\.$#"
38
+
count:1
39
+
path:src/Spellchecker/PHPPspell.php
40
+
41
+
-
42
+
message:"#^Parameter \\#1 \\$dictionary of function pspell_suggest expects PSpell\\\\Dictionary, int given\\.$#"
0 commit comments