mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Fix error provider
This commit is contained in:
@@ -31,14 +31,14 @@ use App\Logging\Reporting\Middleware\SetGroups;
|
||||
use App\Logging\Reporting\Middleware\SetInstanceId;
|
||||
use App\Models\Callback;
|
||||
use ErrorException;
|
||||
use Facade\FlareClient\Report;
|
||||
use Facade\Ignition\Facades\Flare;
|
||||
use Spatie\FlareClient\Report;
|
||||
use Spatie\LaravelIgnition\Facades\Flare;
|
||||
use Illuminate\Support\Facades\Log;
|
||||
use Illuminate\Support\Str;
|
||||
use LibreNMS\Config;
|
||||
use LibreNMS\Util\Git;
|
||||
|
||||
class ErrorReportingProvider extends \Facade\Ignition\IgnitionServiceProvider
|
||||
class ErrorReportingProvider extends \Spatie\LaravelIgnition\IgnitionServiceProvider
|
||||
{
|
||||
/** @var int */
|
||||
protected $errorReportingLevel = E_ALL & ~E_NOTICE;
|
||||
@@ -52,7 +52,7 @@ class ErrorReportingProvider extends \Facade\Ignition\IgnitionServiceProvider
|
||||
public function boot(): void
|
||||
{
|
||||
/* @phpstan-ignore-next-line */
|
||||
if (! method_exists(\Facade\FlareClient\Flare::class, 'filterReportsUsing')) {
|
||||
if (! method_exists(\Spatie\FlareClient\Flare::class, 'filterReportsUsing')) {
|
||||
Log::debug("Flare client too old, disabling Ignition to avoid bug.\n");
|
||||
|
||||
return;
|
||||
|
||||
+1
-2
@@ -35,7 +35,7 @@
|
||||
"guzzlehttp/guzzle": "^7.2",
|
||||
"influxdb/influxdb-php": "^1.15",
|
||||
"justinrainbow/json-schema": "^5.2",
|
||||
"laravel-notification-channels/webpush": "^6.0",
|
||||
"laravel-notification-channels/webpush": "^7.0",
|
||||
"laravel/framework": "^9.36",
|
||||
"laravel/tinker": "^2.7",
|
||||
"laravel/ui": "^3.3",
|
||||
@@ -53,7 +53,6 @@
|
||||
"symfony/yaml": "^6.0",
|
||||
"tecnickcom/tcpdf": "^6.4",
|
||||
"tightenco/ziggy": "^0.9",
|
||||
"league/flysystem-aws-s3-v3": "^3.0",
|
||||
"spatie/laravel-ignition": "^1.4"
|
||||
},
|
||||
"require-dev": {
|
||||
|
||||
Reference in New Issue
Block a user