File tree Expand file tree Collapse file tree 2 files changed +21
-4
lines changed Expand file tree Collapse file tree 2 files changed +21
-4
lines changed Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ $ config = PhpCsFixer \Config::create ()
4
+ ->setRiskyAllowed (true )
5
+ ->setRules ([
6
+ '@Symfony ' => true ,
7
+ 'array_syntax ' => ['syntax ' => 'short ' ],
8
+ 'single_line_throw ' => false ,
9
+ ])
10
+ ->setFinder (
11
+ PhpCsFixer \Finder::create ()
12
+ ->in (__DIR__ .'/src ' )
13
+ ->name ('*.php ' )
14
+ )
15
+ ;
16
+
17
+ return $ config ;
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ parameters:
11
11
path : src/Authentication/Header.php
12
12
13
13
-
14
- message : " #The Http\\\\ Message\\\\ Authentication\\\\ Matching class is deprecated since version 1.2 and will be removed in 2.0."
14
+ message : " #The Http\\\\ Message\\\\ Authentication\\\\ Matching class is deprecated since version 1.2 and will be removed in 2.0.# "
15
15
count : 1
16
16
path : src/Authentication/Matching.php
17
17
@@ -51,7 +51,7 @@ parameters:
51
51
path : src/Cookie.php
52
52
53
53
-
54
- message : " #^Parameter \\ #1 \\ $string of function preg_quote expects string, string\\ |null given\\ .$#"
54
+ message : " #^Parameter \\ #1 \\ $str of function preg_quote expects string, string\\ |null given\\ .$#"
55
55
count : 1
56
56
path : src/Cookie.php
57
57
@@ -76,7 +76,7 @@ parameters:
76
76
path : src/Cookie.php
77
77
78
78
-
79
- message : " #^Parameter \\ #1 \\ $str of function rtrim expects string, string\\ |null given\\ .$#"
79
+ message : " #^Parameter \\ #1 \\ $string of function rtrim expects string, string\\ |null given\\ .$#"
80
80
count : 1
81
81
path : src/Cookie.php
82
82
@@ -206,7 +206,7 @@ parameters:
206
206
path : src/MessageFactory/SlimMessageFactory.php
207
207
208
208
-
209
- message : " #The RequestMatcher\\\\ RegexRequestMatcher class is deprecated since version 1.2 and will be removed in 2.0."
209
+ message : " #The Http \\\\ Message \\\\ RequestMatcher\\\\ RegexRequestMatcher class is deprecated since version 1.2 and will be removed in 2.0.# "
210
210
count : 1
211
211
path : src/RequestMatcher/RegexRequestMatcher.php
212
212
You can’t perform that action at this time.
0 commit comments