Skip to content

Commit b36e1a4

Browse files
committed
Set default NULL for vault parameter
1 parent 570741c commit b36e1a4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/WebApp/Configuration.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
class Configuration {
99

1010
protected $data;
11+
protected $credentialProviders;
12+
1113

1214
public function __construct($config) {
1315
$this->data = json_decode(json_encode($config));
@@ -33,7 +35,7 @@ public function has($feature) {
3335
}
3436

3537
/** Return credentials provider when credentials are defined */
36-
public function getCredentialsProvider($feature, $vault) {
38+
public function getCredentialsProvider($feature, $vault = NULL) {
3739
if ($this->has($feature)) {
3840
if (!isset($this->credentialProviders->$feature)) {
3941
if (!isset($this->credentialProviders)) $this->credentialProviders = new \stdClass;

0 commit comments

Comments
 (0)