From 80ef20e1318f1ff5bec006ae7ce249727db676aa Mon Sep 17 00:00:00 2001 From: Thomas Date: Tue, 13 Aug 2019 07:24:03 -0700 Subject: [PATCH] fix(json): Check metadata (#4) --- src/Adapter/Local/JSONFile/LocalJSONFileAdapter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Adapter/Local/JSONFile/LocalJSONFileAdapter.php b/src/Adapter/Local/JSONFile/LocalJSONFileAdapter.php index 075a1e4..0496694 100644 --- a/src/Adapter/Local/JSONFile/LocalJSONFileAdapter.php +++ b/src/Adapter/Local/JSONFile/LocalJSONFileAdapter.php @@ -91,7 +91,7 @@ public function getSecret(string $key, ?array $options = []): Secret return new Secret( $secrets[$index]['key'], $secrets[$index]['value'], - $secrets[$index]['metadata'], + $secrets[$index]['metadata'] ?? null ); }