Skip to content

Document SensitiveParameter attribute in callbacks #5734

Description

@Sjord

Affected page

https://www.php.net/manual/en/curl.constants.php

Current issue

E.g. CURLOPT_SSH_HOSTKEYFUNCTION:

The callback must have the following signature:

function callback(
resource $curlHandle,
int $keyType,
string $key,
int $keyLength
): int

Suggested improvement

I think it would be better if it said #[\SensitiveParameter]string $key.

Additional context (optional)

PHP: SensitiveParameter - Manual

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions