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

Skip to content

Commit e0e476d

Browse files
committed
minor #32317 [Mime] Updated some PHPDoc contents (javiereguiluz)
This PR was squashed before being merged into the 4.4 branch (closes #32317). Discussion ---------- [Mime] Updated some PHPDoc contents | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | no | New feature? | no <!-- please update src/**/CHANGELOG.md files --> | BC breaks? | no <!-- see https://symfony.com/bc --> | Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files --> | Tests pass? | yes <!-- please add some, will be required by reviewers --> | Fixed tickets | - | License | MIT | Doc PR | not needed While documenting #30981 I found some PHPDoc info not clear enough. This "improves" it, but if you don't like it, it's OK to close this. Thanks. Commits ------- 9432f1f [Mime] Updated some PHPDoc contents
2 parents ec3e66d + 9432f1f commit e0e476d

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

src/Symfony/Component/Mime/Crypto/SMimeEncrypter.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ final class SMimeEncrypter extends SMime
2323
private $cipher;
2424

2525
/**
26-
* @param string|string[] $certificate Either a lone X.509 certificate, or an array of X.509 certificates
26+
* @param string|string[] $certificate The path (or array of paths) of the file(s) containing the X.509 certificate(s)
27+
* @param int $cipher A set of algorithms used to encrypt the message. Must be one of these PHP constants: https://www.php.net/manual/en/openssl.ciphers.php
2728
*/
2829
public function __construct($certificate, int $cipher = OPENSSL_CIPHER_AES_256_CBC)
2930
{

src/Symfony/Component/Mime/Crypto/SMimeSigner.php

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,11 @@ final class SMimeSigner extends SMime
3030
private $privateKeyPassphrase;
3131

3232
/**
33-
* @see https://secure.php.net/manual/en/openssl.pkcs7.flags.php
34-
*
35-
* @param string $certificate
36-
* @param string $privateKey A file containing the private key (in PEM format)
33+
* @param string $certificate The path of the file containing the signing certificate (in PEM format)
34+
* @param string $privateKey The path of the file containing the private key (in PEM format)
3735
* @param string|null $privateKeyPassphrase A passphrase of the private key (if any)
38-
* @param string $extraCerts A file containing intermediate certificates (in PEM format) needed by the signing certificate
39-
* @param int $signOptions Bitwise operator options for openssl_pkcs7_sign()
36+
* @param string|null $extraCerts The path of the file containing intermediate certificates (in PEM format) needed by the signing certificate
37+
* @param int $signOptions Bitwise operator options for openssl_pkcs7_sign() (@see https://secure.php.net/manual/en/openssl.pkcs7.flags.php)
4038
*/
4139
public function __construct(string $certificate, string $privateKey, ?string $privateKeyPassphrase = null, ?string $extraCerts = null, int $signOptions = PKCS7_DETACHED)
4240
{

0 commit comments

Comments
 (0)