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

Fix: Cursor.php return type hint breaks php < 8 #572

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

Conversation

sesanzb
Copy link

@sesanzb sesanzb commented Feb 8, 2023

Fixes issue introduced in versions > 15.0.2
when current() function doc line: "* @return AbstractObject|bool" was changed by return type hint: "public function current() : AbstractObject|bool {"

Changed current() return typing from AbstractObject|bool to AbstractObject|null to better match what you would expect

Fixes issue introduced in versions > 15.0.2
when current() function doc line: "* @return AbstractObject|bool"
was changed by return type hint: "public function current() : AbstractObject|bool {"

Changed current() return typing from AbstractObject|bool to AbstractObject|null to better match what you would expect
@stcheng
Copy link
Contributor

stcheng commented Feb 8, 2023

Hi @sesanzb thanks for submitting the pull request. We are considering dropping the support of PHP version < 8 for now. So this pull request might not be merged.

@sesanzb
Copy link
Author

sesanzb commented Feb 9, 2023

Hi @stcheng !
I understand, but in case this solution doesn't merge, it would be great to have a solution for 15.0.3 revision which were minor update and stopped working on PHP < 8, and to add a requirement in composer for 16.0.0 revision for php ^8

@stcheng
Copy link
Contributor

stcheng commented Feb 21, 2023

@sesanzb right now we don't branch out older versions but only tag them. so since v16 has already released on top of the master branch, we're dropping the support since then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants