You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: InfluxDbStorage.php
+5-16Lines changed: 5 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -67,9 +67,9 @@ public function __construct($config = 'influxdb:')
67
67
// and causes library to use defaults.
68
68
@trigger_error(
69
69
sprintf('Passing %s as %s argument is deprecated. Pass it as "client" array property or use createWithClient instead',
70
-
Client::class,
71
-
__METHOD__
72
-
), E_USER_DEPRECATED);
70
+
Client::class,
71
+
__METHOD__
72
+
), \E_USER_DEPRECATED);
73
73
$this->client = $config;
74
74
$config = [];
75
75
} else {
@@ -91,12 +91,7 @@ public function __construct($config = 'influxdb:')
91
91
92
92
if (null !== $config['client']) {
93
93
if (!$config['client'] instanceof Client) {
94
-
thrownew \InvalidArgumentException(sprintf(
95
-
'%s configuration property is expected to be an instance of %s class. %s was passed instead.',
96
-
'client',
97
-
Client::class,
98
-
gettype($config['client'])
99
-
));
94
+
thrownew \InvalidArgumentException(sprintf('%s configuration property is expected to be an instance of %s class. %s was passed instead.', 'client', Client::class, gettype($config['client'])));
100
95
}
101
96
$this->client = $config['client'];
102
97
}
@@ -105,10 +100,7 @@ public function __construct($config = 'influxdb:')
0 commit comments