Skip to content

Commit a923183

Browse files
committed
#13 - Remove remaining type declarations from methods
1 parent 07f918a commit a923183

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/TgVault/CredentialsProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class CredentialsProvider extends SecretProvider implements \TgUtils\Auth\Creden
2424
* @param string $passwordKey - the key in the secret holding the password (default is 'password')
2525
* @throws VaultException when vault or path are NULL
2626
*/
27-
public function __construct(Vault $vault, $path, $usernameKey = NULL, $passwordKey = NULL) {
27+
public function __construct($vault, $path, $usernameKey = NULL, $passwordKey = NULL) {
2828
parent::__construct($vault, $path);
2929
if (($usernameKey == NULL) || (trim($usernameKey) == '')) $usernameKey = 'username';
3030
if (($passwordKey == NULL) || (trim($passwordKey) == '')) $passwordKey = 'password';

src/TgVault/SecretProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class SecretProvider {
2626
* @param string $passwordKey - the key in the secret holding the password (default is 'password')
2727
* @throws VaultException when vault or path are NULL
2828
*/
29-
public function __construct(Vault $vault, $path) {
29+
public function __construct($vault, $path) {
3030
if ($vault == NULL) throw new VaultException('Vault cannot be NULL.', VAULT_ERR_NULL);
3131
if ($path == NULL) throw new VaultException('Path cannot be NULL.', VAULT_ERR_NULL);
3232
$this->vault = $vault;

src/TgVault/Vault.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@ public function getSecret($path);
2222
* It is up to the vault whether it uses the logger and what it logs there.
2323
* @param Logger - the logging object.
2424
*/
25-
public function setLogger(Logger $logger);
25+
public function setLogger($logger);
2626
}
2727

src/TgVault/VaultFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class VaultFactory {
2020
* @return Vault created, otherwise it will throw an exception.
2121
* @throws VaultException when the vault could not be created.
2222
*/
23-
public static function create($config, Logger $logger = NULL) {
23+
public static function create($config, $logger = NULL) {
2424
if ($config == NULL) throw new VaultException('Vault configuration cannot be empty', VAULT_ERR_CONFIG_EMPTY);
2525
if (is_object($config)) return self::createVault($config->type, $config->config, $logger);
2626
if (is_array($config)) return self::createVault($config['type'], $config['config'], $logger);

0 commit comments

Comments
 (0)