From 7dad0772a00f5029038011974b62c701d853569d Mon Sep 17 00:00:00 2001 From: rok Date: Thu, 5 Sep 2019 16:08:26 +0200 Subject: [PATCH] fixed usage of missing array_get function --- healthcheck/HealthChecker/HealthChecker.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/healthcheck/HealthChecker/HealthChecker.php b/healthcheck/HealthChecker/HealthChecker.php index 1b87b52..909705e 100644 --- a/healthcheck/HealthChecker/HealthChecker.php +++ b/healthcheck/HealthChecker/HealthChecker.php @@ -1,5 +1,6 @@ config, $name, []); + $config = Arr::get( $this->config, $name, []); $checker = $this->factory->make($name, $config); @@ -39,7 +40,7 @@ protected function getChecker( $name ) { } public function check( ) { - $checkerNames = array_get( $this->config, 'checks', [] ); + $checkerNames = Arr::get( $this->config, 'checks', [] ); foreach($checkerNames as $checkerName) { $checker = $this->getChecker($checkerName );