Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit df1d0b9

Browse files
committed
Add SensitiveParameter support
1 parent 0d1fc02 commit df1d0b9

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

ext/uri/php_uri.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
#include "php.h"
2222
#include "Zend/zend_interfaces.h"
2323
#include "Zend/zend_exceptions.h"
24+
#include "Zend/zend_attributes.h"
2425
#include "Zend/zend_enum.h"
2526
#include "main/php_ini.h"
2627

ext/uri/php_uri.stub.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public function getUserInfo(): ?string {}
3838

3939
public function getRawUserInfo(): ?string {}
4040

41-
public function withUserInfo(?string $userInfo): static {}
41+
public function withUserInfo(#[\SensitiveParameter] ?string $userInfo): static {}
4242

4343
public function getUsername(): ?string {}
4444

@@ -163,7 +163,7 @@ public function withUsername(?string $username): static {}
163163
/** @implementation-alias Uri\Rfc3986\Uri::getPassword */
164164
public function getPassword(): ?string {}
165165

166-
public function withPassword(?string $password): static {}
166+
public function withPassword(#[\SensitiveParameter] ?string $password): static {}
167167

168168
public function getAsciiHost(): ?string {}
169169

ext/uri/php_uri_arginfo.h

Lines changed: 7 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)