Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: upgrade all instances of PHP 7.4 and 8.0 to 8.1 or higher #1963

Merged
merged 12 commits into from
Jun 27, 2024

Conversation

bshaffer
Copy link
Contributor

@bshaffer bshaffer commented Feb 8, 2024

addresses #1962 and #1961

see cl/634137632

@bshaffer bshaffer requested review from a team as code owners February 8, 2024 18:43
@product-auto-label product-auto-label bot added the samples Issues that are directly related to samples. label Feb 8, 2024
@bshaffer bshaffer requested review from a team as code owners February 8, 2024 22:49
@@ -90,7 +90,7 @@ function update_app_profile(
if ($operationResponse->operationSucceeded()) {
$updatedAppProfile = $operationResponse->getResult();
printf('App profile updated: %s' . PHP_EOL, $updatedAppProfile->getName());
// doSomethingWith($updatedAppProfile)
// doSomethingWith($updatedAppProfile)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we remove this line?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am ambivalent... someone put it here because they thought it illustrated something important. I only changed it because it was indented improperly.

@@ -34,7 +34,7 @@ The application consists of three components:
3. An [`index.php`](index.php) which handles all the requests which get routed to your app.

The `index.php` file is the most important. All applications running on App Engine
for PHP 7.4 require use of a [front controller][front-controller] file.
for PHP require use of a [front controller][front-controller] file.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why did we drop the version in these files?

I could see this being redundant though. Are the minimum requirements stated elsewhere?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because the instructions are not specific to a version of PHP, so we can remove the "7.4" because it's an unnecessary qualifier.

@@ -90,7 +90,7 @@ function update_app_profile(
if ($operationResponse->operationSucceeded()) {
$updatedAppProfile = $operationResponse->getResult();
printf('App profile updated: %s' . PHP_EOL, $updatedAppProfile->getName());
// doSomethingWith($updatedAppProfile)
// doSomethingWith($updatedAppProfile)
} else {
$error = $operationResponse->getError();
// handleError($error)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And this one?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same with this one - the comment is meant as an example of something a user could implement, e.g. they could implement some error handling here with a fake function such as handleError

@bshaffer
Copy link
Contributor Author

bshaffer commented Jun 20, 2024

Looks like the dlp and run/laravel tests are failing for every version of PHP. I believe this is unrelated to the changes made in this PR, and just means that we need to fix those tests.

@bshaffer bshaffer merged commit 8a746a6 into main Jun 27, 2024
7 of 13 checks passed
@bshaffer bshaffer deleted the upgrade-php81 branch June 27, 2024 21:45
kennethye1 pushed a commit to kennethye1/php-docs-samples that referenced this pull request Jul 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
samples Issues that are directly related to samples.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants