File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ Yii Framework 2 authclient extension Change Log
442.2.16 under development
55------------------------
66
7- - no changes in this release.
7+ - Enh # 387 : Use appropriate exception if client does not exist (eluhr)
88
99
10102.2.15 December 16, 2023
Original file line number Diff line number Diff line change 88namespace yii \authclient ;
99
1010use yii \base \Component ;
11- use yii \base \InvalidParamException ;
11+ use yii \base \InvalidArgumentException ;
1212use Yii ;
1313
1414/**
@@ -81,12 +81,12 @@ public function getClients()
8181 /**
8282 * @param string $id service id.
8383 * @return ClientInterface auth client instance.
84- * @throws InvalidParamException on non existing client request.
84+ * @throws InvalidArgumentException on non existing client request.
8585 */
8686 public function getClient ($ id )
8787 {
8888 if (!array_key_exists ($ id , $ this ->_clients )) {
89- throw new InvalidParamException ("Unknown auth client ' {$ id }'. " );
89+ throw new InvalidArgumentException ("Unknown auth client ' {$ id }'. " );
9090 }
9191 if (!is_object ($ this ->_clients [$ id ])) {
9292 $ this ->_clients [$ id ] = $ this ->createClient ($ id , $ this ->_clients [$ id ]);
You can’t perform that action at this time.
0 commit comments