Skip to content

Commit 9e95669

Browse files
authored
docs: fix warning position - move it above parameters (#599)
1 parent 86e9d93 commit 9e95669

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/CredentialsLoader.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -120,19 +120,19 @@ public static function fromWellKnownFile()
120120
/**
121121
* Create a new Credentials instance.
122122
*
123+
* **Important**: If you accept a credential configuration (credential JSON/File/Stream) from an
124+
* external source for authentication to Google Cloud Platform, you must validate it before
125+
* providing it to any Google API or library. Providing an unvalidated credential configuration to
126+
* Google APIs can compromise the security of your systems and data. For more information
127+
* {@see https://cloud.google.com/docs/authentication/external/externally-sourced-credentials}
128+
*
123129
* @param string|string[] $scope the scope of the access request, expressed
124130
* either as an Array or as a space-delimited String.
125131
* @param array<mixed> $jsonKey the JSON credentials.
126132
* @param string|string[] $defaultScope The default scope to use if no
127133
* user-defined scopes exist, expressed either as an Array or as a
128134
* space-delimited string.
129135
*
130-
* **Important**: If you accept a credential configuration (credential JSON/File/Stream) from an
131-
* external source for authentication to Google Cloud Platform, you must validate it before
132-
* providing it to any Google API or library. Providing an unvalidated credential configuration to
133-
* Google APIs can compromise the security of your systems and data. For more information
134-
* {@see https://cloud.google.com/docs/authentication/external/externally-sourced-credentials}
135-
*
136136
* @return ServiceAccountCredentials|UserRefreshCredentials|ImpersonatedServiceAccountCredentials|ExternalAccountCredentials
137137
*/
138138
public static function makeCredentials(

0 commit comments

Comments
 (0)