Skip to content

Commit

Permalink
Replace data_forget with unset
Browse files Browse the repository at this point in the history
  • Loading branch information
neemspees committed Aug 21, 2023
1 parent 4f23893 commit 33feb68
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/LaravelMonitoringServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

use Illuminate\Contracts\Config\Repository;
use Illuminate\Contracts\Foundation\CachesConfiguration;
use Illuminate\Support\Arr;
use Libaro\LaravelMonitoring\Commands\MonitorCommand;
use Libaro\LaravelMonitoring\Services\CheckBuilder;
use Libaro\LaravelMonitoring\Services\CommandScheduler;
Expand Down Expand Up @@ -48,7 +47,7 @@ private function mergeHealthConfig(): void

$healthConfig = $config->get('health', []);

data_forget($healthConfig, 'result_stores');
unset($healthConfig['result_stores']);

$config->set('health', array_replace_recursive(
$healthConfig, $config->get('monitoring.health', []),
Expand Down

0 comments on commit 33feb68

Please sign in to comment.