File tree Expand file tree Collapse file tree 3 files changed +18
-2
lines changed Expand file tree Collapse file tree 3 files changed +18
-2
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ package.xml
8
8
docs
9
9
.phpintel /
10
10
tests /.phpunit.result.cache
11
+ .php-cs-fixer.cache
11
12
12
13
# You should be keeping these in a global gitignore, see for example
13
14
# https://help.github.com/articles/ignoring-files#global-gitignore
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ $ config = new PhpCsFixer \Config ();
4
+
5
+ $ config ->setRules (['nullable_type_declaration_for_default_null_value ' => true ,]);
6
+
7
+ return $ config ->setFinder (PhpCsFixer \Finder::create ()->in (__DIR__ .'/src ' ));
8
+
Original file line number Diff line number Diff line change 16
16
},
17
17
"require-dev" : {
18
18
"guzzlehttp/guzzle" : " ^6.3 || ^7.0" ,
19
- "phpunit/phpunit" : " >=7.0 < 10"
19
+ "phpunit/phpunit" : " >=7.0 < 10" ,
20
+ "friendsofphp/php-cs-fixer" : " ^3.68"
20
21
},
21
22
"suggest" : {
22
23
"guzzlehttp/guzzle" : " An HTTP client to execute the API requests"
32
33
"Twilio\\ Tests\\ " : " tests/Twilio/"
33
34
}
34
35
},
36
+ "scripts" : {
37
+ "php84-fix" : [
38
+ " @putenv PHP_CS_FIXER_IGNORE_ENV=1" ,
39
+ " vendor/bin/php-cs-fixer -vvv fix --using-cache=no ."
40
+ ]
41
+ },
35
42
"config" : {
36
43
"lock" : false
37
44
}
38
- }
45
+ }
You can’t perform that action at this time.
0 commit comments