Skip to content

Drop unused packaged/helpers requirement, add tests and CI - #4

Merged
TomK merged 3 commits into
masterfrom
php8-helpers2
Oct 27, 2026
Merged

TomK merged 3 commits into
masterfrom
php8-helpers2

Conversation

@TomK

@TomK TomK commented Oct 27, 2026 •

Copy link
Copy Markdown
Member

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.

  • Installing packaged/bigquery: packaged/helpers is no longer required, so any helpers version can sit alongside it. On PHP 8.5 this resolves google/cloud-bigquery 1.39.3.
  • PHP 8.4+: loading BigQueryHelper and BigQueryTimeoutException no 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

  • CI passes on all five PHP versions with 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:
    • credential loading (array, JSON, file, and the invalid cases)
    • dataset and template table names
    • row serialisation for every field type, including the errors for invalid values
    • batching by request size and row error messages
    • BigQueryTimeoutException
  • src/ has no Packaged\Helpers references 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

TomK and others added 2 commits October 27, 2026 14:16
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>
@TomK TomK changed the title Allow packaged/helpers 2 and PHP 8.4+ nullable types Drop unused packaged/helpers requirement; explicit nullable types Oct 27, 2026
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>
@TomK TomK changed the title Drop unused packaged/helpers requirement; explicit nullable types Drop unused packaged/helpers requirement, add tests and CI Oct 27, 2026
@TomK
TomK merged commit 5cbcb73 into master Oct 27, 2026
5 checks passed
@TomK
TomK deleted the php8-helpers2 branch October 27, 2026 14:27
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.

1 participant