File tree Expand file tree Collapse file tree 3 files changed +14
-13
lines changed
Expand file tree Collapse file tree 3 files changed +14
-13
lines changed Original file line number Diff line number Diff line change 3737
3838 - name : Run phpunit tests (with and without cURL)
3939 run : |
40- composer check
40+ ./vendor/bin/phpunit --display-deprecations
41+ SKIP_CURL=1 ./vendor/bin/phpunit --display-deprecations
4142
42- - name : Run proxy tests
43+ - name : Run proxy tests (with and without cURL)
4344 run : |
4445 docker run -d --name=tinyproxy -p 8888:8888 monokal/tinyproxy:latest ANY
4546 PROXY=http://0.0.0.0:8888 ./vendor/bin/phpunit
Original file line number Diff line number Diff line change @@ -68,11 +68,11 @@ protected function getJSONByFopen($query)
6868
6969 $ ret = @file_get_contents ($ query );
7070 if ($ ret === false ) {
71- $ response_headers = function_exists ('http_get_last_response_headers ' )
72- ? http_get_last_response_headers ()
73- /** NOTE: https://github.com/phpstan/phpstan/issues/3213 */
74- /** @phpstan-ignore-next-line */
75- : ( isset ($ http_response_header ) ? $ http_response_header : null ) ;
71+ if ( function_exists ('http_get_last_response_headers ' )) {
72+ $ http_response_header = http_get_last_response_headers ();
73+ }
74+
75+ $ response_headers = isset ($ http_response_header ) ? $ http_response_header : null ;
7676
7777 /** @phpstan-ignore-next-line */
7878 if (isset ($ response_headers ) && is_array ($ response_headers )) {
You canβt perform that action at this time.
0 commit comments