File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -310,10 +310,10 @@ private function getPostedToken(RequestInterface $request): ?string
310310 return is_string ($ tokenValue ) ? $ tokenValue : null ;
311311 }
312312
313- if ($ request ->hasHeader ($ this ->config ->headerName )
314- && $ request ->header ($ this ->config ->headerName )->getValue () !== ''
315- && $ request -> header ( $ this -> config -> headerName )-> getValue () !== []) {
316- return $ request -> header ( $ this -> config -> headerName )-> getValue () ;
313+ if ($ request ->hasHeader ($ this ->config ->headerName )) {
314+ $ tokenValue = $ request ->header ($ this ->config ->headerName )->getValue ();
315+
316+ return ( $ tokenValue !== '' && $ tokenValue !== [] && is_string ( $ tokenValue )) ? $ tokenValue : null ;
317317 }
318318
319319 $ body = (string ) $ request ->getBody ();
You can’t perform that action at this time.
0 commit comments