File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,6 +2,11 @@ CHANGE LOG
22==========
33
44
5+ ## 5.1.1 (UPCOMING)
6+
7+ * Add sensitive parameter annotations for authentication tokens
8+
9+
510## 5.1.0 (06/05/2026)
611
712* Add PHP 8.5 support
Original file line number Diff line number Diff line change 2828 "php-http/httplug" : " ^2.4.1" ,
2929 "psr/http-client-implementation" : " ^1.0" ,
3030 "psr/http-factory-implementation" : " ^1.0" ,
31- "psr/http-message" : " ^1.1 || ^2.0"
31+ "psr/http-message" : " ^1.1 || ^2.0" ,
32+ "symfony/polyfill-php82" : " ^1.27"
3233 },
3334 "require-dev" : {
3435 "bamarni/composer-bin-plugin" : " ^1.8.2" ,
Original file line number Diff line number Diff line change @@ -213,7 +213,7 @@ public function vpc(): Vpc
213213 return new Vpc ($ this );
214214 }
215215
216- public function authenticate (string $ token ): void
216+ public function authenticate (#[\SensitiveParameter] string $ token ): void
217217 {
218218 $ this ->getHttpClientBuilder ()->addPlugin (new Authentication ($ token ));
219219 }
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ final class Authentication implements Plugin
3434 */
3535 private readonly string $ header ;
3636
37- public function __construct (string $ token )
37+ public function __construct (#[\SensitiveParameter] string $ token )
3838 {
3939 $ this ->header = \sprintf ('Bearer %s ' , $ token );
4040 }
You can’t perform that action at this time.
0 commit comments