diff --git a/src/Support/TranslationManager.php b/src/Support/TranslationManager.php index 318ad01..bdc01b8 100644 --- a/src/Support/TranslationManager.php +++ b/src/Support/TranslationManager.php @@ -223,13 +223,13 @@ private function getFilenames(string $directory): array return $fileNames; } - public function getNestedItems($input, $levels = []) + private function getNestedItems($input, $levels = []) { $output = $input; foreach ($levels as $level) { if (! is_array($output) || ! array_key_exists($level, $output)) { - break; + return null; } $output = $output[$level]; }