File tree Expand file tree Collapse file tree 2 files changed +4
-7
lines changed
Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,4 @@ parameters:
66 paths :
77 - src
88
9- # The level 9 is the highest level
10- level : 5
11-
12- checkMissingIterableValueType : false
9+ level : max
Original file line number Diff line number Diff line change @@ -49,16 +49,16 @@ protected function shouldCompressResponse($response): bool
4949 && ! $ response instanceof StreamedResponse
5050 && ! $ response ->headers ->has ('Content-Encoding ' )
5151 && config ('response-compression.enable ' , true )
52- && strlen ($ response ->getContent ()) >= config ('response-compression.threshold ' , 10000 );
52+ && strlen ($ response ->getContent () ?: '' ) >= config ('response-compression.threshold ' , 10000 );
5353 }
5454
5555 /**
5656 * Determine which algorithm should be used to compress the response.
5757 *
5858 * @param \Illuminate\Http\Request $request
59- * @return array< string> |null
59+ * @return array{0: string, 1: callable-string} |null
6060 */
61- protected function shouldCompressUsing ($ request )
61+ protected function shouldCompressUsing ($ request ): ? array
6262 {
6363 $ requestEncodings = $ request ->getEncodings ();
6464
You can’t perform that action at this time.
0 commit comments