File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ public function logout(): RedirectResponse
3939 {
4040 $ provider = $ this ->getOAuth2Provider ();
4141
42- if (!( $ provider instanceof Passage) ) {
42+ if (!$ provider instanceof Passage) {
4343 throw new \RuntimeException ('Invalid provider " ' .$ provider ::class.'", expected provider " ' .Passage::class.'" ' );
4444 }
4545
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ public function getConfigTreeBuilder(): TreeBuilder
4444 ->end ()
4545 ->end ()
4646 ->validate ()
47- ->ifTrue (fn ($ v ) => isset ($ v ['http_client_options ' ], $ v ['http_client ' ]) && !empty ($ v ['http_client_options ' ]))
47+ ->ifTrue (static fn ($ v ) => isset ($ v ['http_client_options ' ], $ v ['http_client ' ]) && !empty ($ v ['http_client_options ' ]))
4848 ->thenInvalid ('You cannot use both "http_client_options" and "http_client" at the same time under "knpu_oauth2_client". ' )
4949 ->end ()
5050 ;
Original file line number Diff line number Diff line change @@ -88,14 +88,14 @@ public function buildConfiguration(NodeBuilder $node)
8888 ->end ();
8989
9090 // Validate that either client_secret or client_certificate_private_key is set:
91- $ node
91+ $ node // @phpstan-ignore-line
9292 ->end ()
9393 ->validate ()
94- ->ifTrue (fn ($ v ) => empty ($ v ['client_secret ' ]) && empty ($ v ['client_certificate_private_key ' ]))
94+ ->ifTrue (static fn ($ v ) => empty ($ v ['client_secret ' ]) && empty ($ v ['client_certificate_private_key ' ]))
9595 ->thenInvalid ('You have to define either client_secret or client_certificate_private_key ' )
9696 ->end ()
9797 ->validate ()
98- ->ifTrue (fn ($ v ) => !empty ($ v ['client_certificate_private_key ' ]) && empty ($ v ['client_certificate_thumbprint ' ]))
98+ ->ifTrue (static fn ($ v ) => !empty ($ v ['client_certificate_private_key ' ]) && empty ($ v ['client_certificate_thumbprint ' ]))
9999 ->thenInvalid ('You have to define the client_certificate_thumbprint when using a certificate ' )
100100 ->end ();
101101 }
You can’t perform that action at this time.
0 commit comments