We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d9e1f15 commit 7c7547bCopy full SHA for 7c7547b
tests/SimpleTestCase.php
@@ -27,8 +27,10 @@ public static function setUpBeforeClass(): void {
27
self::$test_bucket = 'gs://php-cloudfunctions';
28
}
29
30
- private static function get_project_id() {
31
- return shell_exec('gcloud config get-value project');
+ private static function get_project_id(): string {
+ $stdout = shell_exec('gcloud config get-value project');
32
+ if ($stdout == null) {return 'unknown';}
33
+ else {return $stdout;}
34
35
36
public function test_on_https(): void {
0 commit comments