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 reducing operations #288

Merged
merged 4 commits into from
Dec 28, 2022
Merged

Fix reducing operations #288

merged 4 commits into from
Dec 28, 2022

Conversation

drupol
Copy link
Collaborator

@drupol drupol commented Dec 28, 2022

This PR:

  • Fix reduce, reduction, scanLeft, scanRight
  • Is covered by unit tests
  • Has static analysis tests (psalm, phpstan)
  • Has documentation

Note, the psalm issues are related to the upgrade to 5.4, they will be fixed in a follow up PR which is almost done.

Follows a discussion on Mastodon with @azjezz at https://mathstodon.xyz/@Pol/109588243184619262

AlexandruGG
AlexandruGG previously approved these changes Dec 28, 2022
Copy link
Collaborator

@AlexandruGG AlexandruGG left a comment

Choose a reason for hiding this comment

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

I saw the loophp/iterators changes as well, thanks for this!

tests/static-analysis/reduce.php Outdated Show resolved Hide resolved
@drupol drupol marked this pull request as ready for review December 28, 2022 16:55
@drupol drupol merged commit 7ad1d09 into master Dec 28, 2022
@drupol drupol deleted the fix/reduce-operations branch December 28, 2022 16:55
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.

None yet

2 participants