Repository navigation
Drop unused packaged/helpers requirement, add tests and CI - #4
Merged
Merged
Conversation
The library calls nothing from packaged/helpers, but its ~1.0 constraint stopped any project on helpers 2 from installing it. writeRows() and BigQueryTimeoutException declare their nullable parameters explicitly, which PHP 8.4 deprecates leaving implicit. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Neither the library nor any of its dependencies references packaged/helpers. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
CI runs the tests on PHP 7.4 and 8.2 to 8.5. The tests cover credential loading, table name handling, row serialisation for every field type, batching by request size, row error messages and BigQueryTimeoutException, without network access. On 7.4, install skips advisory blocking because every google/auth release for 7.4 needs an affected firebase/php-jwt. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No project on packaged/helpers 2 could install packaged/bigquery: every release requires helpers
~1.0, although nothing in the library or its dependencies uses helpers.BigQueryHelperandBigQueryTimeoutExceptionno longer raises implicit-nullable deprecations.The repo now has PHPUnit tests and GitHub Actions CI on PHP 7.4 and 8.2–8.5. On 7.4, install skips advisory blocking: every google/auth release that supports 7.4 needs a firebase/php-jwt version with an advisory.
Test plan
OK (21 tests, 55 assertions). 7.4 resolves cloud-bigquery 1.30.0; 8.5 resolves 1.39.3. The tests run offline and cover:BigQueryTimeoutExceptionsrc/has noPackaged\Helpersreferences and no calls to helpers' global functions. The same holds for every package in the dependency tree: 41 packages on PHP 7.4, 39 on PHP 8.5.🤖 Generated with Claude Code