← All changes
|
includes/sdk/google/google/auth/src/Credentials/InsecureCredentials.php
+4
-4
1.2.4
→
1.4.1
View file →
| @@ -14,11 +14,11 @@ | ||
| 14 | 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 15 | 15 | * See the License for the specific language governing permissions and |
| 16 | 16 | * limitations under the License. |
| 17 | 17 | */ |
| 18 | -namespace Dudlewebs\WPMCS\Google\Auth\Credentials; | |
| 18 | +namespace Dudlewebs\WPMCS\GCP\Google\Auth\Credentials; | |
| 19 | 19 | |
| 20 | -use Dudlewebs\WPMCS\Google\Auth\FetchAuthTokenInterface; | |
| 20 | +use Dudlewebs\WPMCS\GCP\Google\Auth\FetchAuthTokenInterface; | |
| 21 | 21 | /** |
| 22 | 22 | * Provides a set of credentials that will always return an empty access token. |
| 23 | 23 | * This is useful for APIs which do not require authentication, for local |
| 24 | 24 | * service emulators, and for testing. |
| @@ -31,12 +31,12 @@ | ||
| 31 | 31 | private $token = ['access_token' => '']; |
| 32 | 32 | /** |
| 33 | 33 | * Fetches the auth token. In this case it returns an empty string. |
| 34 | 34 | * |
| 35 | - * @param callable $httpHandler | |
| 35 | + * @param callable|null $httpHandler | |
| 36 | 36 | * @return array{access_token:string} A set of auth related metadata |
| 37 | 37 | */ |
| 38 | - public function fetchAuthToken(callable $httpHandler = null) | |
| 38 | + public function fetchAuthToken(?callable $httpHandler = null) | |
| 39 | 39 | { |
| 40 | 40 | return $this->token; |
| 41 | 41 | } |
| 42 | 42 | /** |