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

Make code PHP8.1 compatible #205

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

royarisse
Copy link

Fix: Remove optional arguments before required arguments.
Fix: Return types for Walker.

Fix: Remove optional arguments before required arguments.
Fix: Return types for Walker.
@@ -149,7 +149,7 @@ public function push($jql, $fields = null)
* @return mixed Can return any type.
* @link http://php.net/manual/en/iterator.current.php
*/
public function current()
public function current(): mixed
Copy link
Collaborator

Choose a reason for hiding this comment

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

I understand that in PHP 8.1 (or even in PHP 8.0) the Iterator interface method signatures were changed. Due to that change, I see no way to have the same iterator class declaration, that will satisfy every supported PHP version (5.x, 7.x, 8.x).

Do you see any way to make this work?

P.S.
This code changes causes lot of builds to fail.

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.

2 participants