Fix gpg getPassphrase() (return) type declarations

This commit is contained in:
the-djmaze 2026-10-27 20:18:28 +01:00
parent 03151d72a0
commit afece6e85c
2 changed files with 2 additions and 2 deletions

View file

@ -437,7 +437,7 @@ abstract class Base
// echo \shell_exec('gpg-agent --daemon --homedir $home 2>&1');
}
protected function getPassphrase($key): string
protected function getPassphrase(string $key): string
{
$passphrase = '';
$keyIdLength = \strlen($key);

View file

@ -1015,7 +1015,7 @@ class SMIME extends Base
];
}
protected function getPassphrase($key)
protected function getPassphrase(string $key): string
{
$passphrase = '';
$keyIdLength = \strlen($key);