File tree Expand file tree Collapse file tree 7 files changed +31
-32
lines changed Expand file tree Collapse file tree 7 files changed +31
-32
lines changed Original file line number Diff line number Diff line change 1
- .editorconfig export-ignore
2
- .gitattributes export-ignore
3
- /.github / export-ignore
4
- .gitignore export-ignore
5
- /.php_cs export-ignore
6
- /.scrutinizer.yml export-ignore
7
- /.styleci.yml export-ignore
8
- /.travis.yml export-ignore
9
- /behat.yml.dist export-ignore
10
- /features / export-ignore
11
- /phpspec.ci.yml export-ignore
12
- /phpspec.yml.dist export-ignore
13
- /phpunit.xml.dist export-ignore
14
- /spec / export-ignore
15
- /tests / export-ignore
1
+ .editorconfig export-ignore
2
+ .gitattributes export-ignore
3
+ /.github / export-ignore
4
+ .gitignore export-ignore
5
+ /.php-cs-fixer.dist.php export-ignore
6
+ /phpstan.neon.dist export-ignore
7
+ /phpunit.xml.dist export-ignore
8
+ /tests / export-ignore
Original file line number Diff line number Diff line change 33
33
- name : PHP-CS-Fixer
34
34
uses : docker://oskarstark/php-cs-fixer-ga
35
35
with :
36
- args : --dry-run --diff-format udiff
36
+ args : --dry-run --diff
Original file line number Diff line number Diff line change 1
- /behat.yml
2
1
/build /
3
2
/composer.lock
4
- /phpspec.yml
5
3
/phpunit.xml
6
4
/vendor /
5
+ .php-cs-fixer.php
7
6
.phpunit.result.cache
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ $ finder = PhpCsFixer \Finder::create ()
4
+ ->exclude ('vendor ' )
5
+ ->in (__DIR__ )
6
+ ;
7
+
8
+ $ config = (new PhpCsFixer \Config ())
9
+ ->setRiskyAllowed (true )
10
+ ->setRules ([
11
+ '@Symfony ' => true ,
12
+ ])
13
+ ->setFinder ($ finder )
14
+ ;
15
+
16
+ return $ config ;
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -2,3 +2,6 @@ parameters:
2
2
level: max
3
3
paths:
4
4
- src
5
+ ignoreErrors:
6
+ - message: '#^Method Http\\Adapter\\React\\Client::sendRequest\(\) should return Psr\\Http\\Message\\ResponseInterface but returns mixed.$#'
7
+ path: src/Client.php
Original file line number Diff line number Diff line change @@ -52,6 +52,8 @@ public function sendRequest(RequestInterface $request): ResponseInterface
52
52
{
53
53
$ promise = $ this ->sendAsyncRequest ($ request );
54
54
55
+ // The promise is declared to return mixed, but the react client promise returns a response.
56
+ // We unwrap the exception if there is any, otherwise the promise would return null on error.
55
57
return $ promise ->wait ();
56
58
}
57
59
You can’t perform that action at this time.
0 commit comments