Skip to content

fix: Avoid passing null as an array offset for longRunning descriptors in resumeOperation#842

Open
cy-yun wants to merge 4 commits into
mainfrom
fix-spanner-tests-9230
Open

fix: Avoid passing null as an array offset for longRunning descriptors in resumeOperation#842
cy-yun wants to merge 4 commits into
mainfrom
fix-spanner-tests-9230

Conversation

@cy-yun

@cy-yun cy-yun commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

Title: fix: Avoid passing null as an array offset for longRunning descriptors in resumeOperation

Description:
This PR fixes a PHP 8.1 deprecation warning generated by the client libraries when calling resumeOperation().

Previously, resumeOperation($operationName, $methodName = null) passed $methodName directly as an array offset when checking for longRunning descriptors, triggering a deprecation warning if $methodName was null. The code generator has been updated to safely use isset($methodName) before attempting to access the array key.

This improves the Spanner System Test by eliminating deprecation message spamming in the test outputs.

Fixes googleapis/google-cloud-php#9230

…s in resumeOperation

This fixes a PHP 8.1 deprecation warning generated by the client libraries.
@cy-yun
cy-yun requested a review from a team as a code owner July 20, 2026 23:11
cy-yun and others added 3 commits July 20, 2026 16:30
The @com_google_googleapis dependency updated the Spanner target from spanner_database_admin_proto to database_proto, which was failing the analysis phase of Bazel tests on GitHub Actions.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improvements to Spanner System Tests

2 participants