Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/Firebase/AppCheck/AppCheckTokenGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@

/**
* @internal
*
* @todo Add #[SensitiveParameter] attribute to the private key once the minimum required PHP version is >=8.2
*/
final class AppCheckTokenGenerator
{
Expand All @@ -24,7 +26,6 @@ final class AppCheckTokenGenerator
*/
public function __construct(
private readonly string $clientEmail,
#[\SensitiveParameter]
private readonly string $privateKey,
?ClockInterface $clock = null,
) {
Expand Down
13 changes: 2 additions & 11 deletions src/Firebase/ServiceAccount.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,44 +6,35 @@

/**
* @internal
*
* @todo Add #[SensitiveParameter] attributes once the minimum required PHP version is >=8.2
*/
final class ServiceAccount
{
public function __construct(
/** @var non-empty-string */
public string $type,
/** @var non-empty-string */
#[\SensitiveParameter]
public string $projectId,
/** @var non-empty-string */
#[\SensitiveParameter]
public string $clientEmail,
/** @var non-empty-string */
#[\SensitiveParameter]
public string $privateKey,
/** @var non-empty-string|null */
#[\SensitiveParameter]
public ?string $clientId = null,
/** @var non-empty-string|null */
#[\SensitiveParameter]
public ?string $privateKeyId = null,
/** @var non-empty-string|null */
#[\SensitiveParameter]
public ?string $authUri = null,
/** @var non-empty-string|null */
#[\SensitiveParameter]
public ?string $tokenUri = null,
/** @var non-empty-string|null */
#[\SensitiveParameter]
public ?string $authProviderX509CertUrl = null,
/** @var non-empty-string|null */
#[\SensitiveParameter]
public ?string $clientX509CertUrl = null,
/** @var non-empty-string|null */
#[\SensitiveParameter]
public ?string $quotaProjectId = null,
/** @var non-empty-string|null */
#[\SensitiveParameter]
public ?string $universeDomain = null,
) {
}
Expand Down