Skip to content

Commit 7589360

Browse files
chore(deps): update dependency phpstan/phpstan to v2 (GoogleCloudPlatform#2115)
* chore(deps): update dependency phpstan/phpstan to v2 * fix new phpstan errors --------- Co-authored-by: Brent Shaffer
1 parent 250163c commit 7589360

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

endpoints/getting-started/src/make_request.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ function make_request(
7777
$oauth->setClientSecret($config['installed']['client_secret']);
7878
$oauth->setRedirectUri('urn:ietf:wg:oauth:2.0:oob');
7979
$authUrl = $oauth->buildFullAuthorizationUri(['access_type' => 'offline']);
80-
`open '$authUrl'`;
80+
exec('open "$authUrl"');
8181

8282
// prompt for the auth code
8383
$authCode = readline('Enter the authCode: ');

storage/src/get_bucket_metadata.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ function get_bucket_metadata(string $bucketName): void
3838
$bucket = $storage->bucket($bucketName);
3939
$info = $bucket->info();
4040

41-
printf('Bucket Metadata: %s' . PHP_EOL, print_r($info));
41+
printf('Bucket Metadata: %s' . PHP_EOL, print_r($info, true));
4242
}
4343
# [END storage_get_bucket_metadata]
4444

testing/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"phpunit/phpunit": "^9.0",
1111
"friendsofphp/php-cs-fixer": "^3.29",
1212
"composer/semver": "^3.2",
13-
"phpstan/phpstan": "^1.10",
13+
"phpstan/phpstan": "^2.0",
1414
"phpspec/prophecy-phpunit": "^2.0",
1515
"dg/bypass-finals": " ^1.7"
1616
}

0 commit comments

Comments
 (0)