Skip to content

Commit 5ba2b20

Browse files
fix: Use self:: instead of $this-> for static validation methods in GapicClientTrait validation (#643)
1 parent 1d3834d commit 5ba2b20

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/GapicClientTrait.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ private function setClientOptions(array $options)
261261
if (isset($options['serviceAddress'])) {
262262
$options['apiEndpoint'] = $this->pluck('serviceAddress', $options, false);
263263
}
264-
$this->validateNotNull($options, [
264+
self::validateNotNull($options, [
265265
'apiEndpoint',
266266
'serviceName',
267267
'descriptorsConfigPath',
@@ -270,7 +270,7 @@ private function setClientOptions(array $options)
270270
'credentialsConfig',
271271
'transportConfig',
272272
]);
273-
$this->traitValidate($options, [
273+
self::traitValidate($options, [
274274
'credentials',
275275
'transport',
276276
'gapicVersion',

0 commit comments

Comments
 (0)