[GH-ISSUE #127] Compatibility problem with PHP < 7 #527

Closed
opened 2026-03-14 12:07:28 +03:00 by kerem · 3 comments
Owner

Originally created by @aletede21 on GitHub (Sep 23, 2019).
Original GitHub issue: https://github.com/antonioribeiro/google2fa/issues/127

In the file Base32.php row 75 there is a return type that is not provided in PHP < 7

Originally created by @aletede21 on GitHub (Sep 23, 2019). Original GitHub issue: https://github.com/antonioribeiro/google2fa/issues/127 In the file Base32.php row 75 there is a return type that is not provided in PHP < 7
kerem closed this issue 2026-03-14 12:07:33 +03:00
Author
Owner

@antonioribeiro commented on GitHub (Sep 23, 2019):

Yeah, it's hard to keep supporting older versions of PHP.

<!-- gh-comment-id:534181582 --> @antonioribeiro commented on GitHub (Sep 23, 2019): Yeah, it's hard to keep supporting older versions of PHP.
Author
Owner

@antonioribeiro commented on GitHub (Sep 23, 2019):

New version should work on 7.0, removed those type hints, but I cannot rally test it on 7.0, because of: https://travis-ci.org/antonioribeiro/google2fa/jobs/588587454.

If you find a nice way to keep tests running on PHP<7.1, I can bring support back to it, but for now I will change it to PHP>=7.1.

<!-- gh-comment-id:534225672 --> @antonioribeiro commented on GitHub (Sep 23, 2019): New version should work on 7.0, removed those type hints, but I cannot rally test it on 7.0, because of: https://travis-ci.org/antonioribeiro/google2fa/jobs/588587454. If you find a nice way to keep tests running on PHP<7.1, I can bring support back to it, but for now I will change it to PHP>=7.1.
Author
Owner

@GrahamCampbell commented on GitHub (Apr 4, 2020):

This issue can be closed now.

<!-- gh-comment-id:609017070 --> @GrahamCampbell commented on GitHub (Apr 4, 2020): This issue can be closed now.
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/google2fa#527
No description provided.