Skip to content

Commit

Permalink
Fix suppressKeyFileNotice check (#1237)
Browse files Browse the repository at this point in the history
Fix `Undefined index: suppressKeyFileNotice` error
  • Loading branch information
egs33 authored and jdpedrie committed Aug 22, 2018
1 parent 198404a commit 49c698f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Core/src/ClientTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,8 @@ private function detectProjectId(array $config)
'projectId' => null,
'projectIdRequired' => false,
'hasEmulator' => false,
'preferNumericProjectId' => false
'preferNumericProjectId' => false,
'suppressKeyFileNotice' => false
];

if ($config['projectId']) {
Expand All @@ -189,7 +190,7 @@ private function detectProjectId(array $config)
return $config['keyFile']['project_id'];
}

if (!isset($config['suppressKeyFileNotice']) && $config['suppressKeyFileNotice'] !== true) {
if ($config['suppressKeyFileNotice'] !== true) {
$serviceAccountUri = 'https://cloud.google.com/iam/docs/' .
'creating-managing-service-account-keys#creating_service_account_keys';

Expand Down

0 comments on commit 49c698f

Please sign in to comment.