Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Compatibility with PHP 8.1 - \iterator update

Open
#48 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
38/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
php
Domain
databases

Research direction

The report points to ThriftSQL/Utils/Iterator.php inside the packaged phar at line 52; first locate the corresponding source file and inspect Iterator::next() against PHP 8.1's Iterator contract. Done means the reported deprecation no longer appears when the library is packaged and used with PHP 8.1.

Written by the indexing model from the issue text.

Description

Deprecated: Return type of ThriftSQL\Utils\Iterator::next() should either be compatible with Iterator::next(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in phar:.../ThriftSQL.phar/ThriftSQL/Utils/Iterator.php on line 52

### Tasks
Dominant language
PHP
Stars
112
Forks
42
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Automattic/php-thrift-sql

All issues in Automattic/php-thrift-sql

Similar issues

More PHP issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.