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 DatePeriod tests for implementing IteratorAggregate #8422

Closed
wants to merge 1 commit into from

Conversation

fluffycondor
Copy link
Contributor

I wrote them in a wrong way in #8312, so they are rewritten now as @AndrolGenhald advised in #8327.
But actually I'm quite surprised Psalm allows me to call getIterator() on a pure Traversable. It actually results in Fatal Error: https://3v4l.org/MEpb3 (But it's the only one way I've found to test it.)
Looks like PHP 8 stubs indeed leaks to PHP 7 environment somehow.

I wrote them in a wrong way in vimeo#8312, so they are rewritten now as @AndrolGenhald advised in vimeo#8327
@AndrolGenhald
Copy link
Collaborator

I was thinking it should be in providerInvalidCodeParse to make sure it has an error, if that test is working fine then it does seem like something is broken.

@fluffycondor
Copy link
Contributor Author

fluffycondor commented Aug 19, 2022

it should be in providerInvalidCodeParse

I've tried it like that, it yields no error. I mean the test fails with the reason "No CodeException was thrown" or something. So Psalm thinks this code is valid in PHP 7.3 environment.

@weirdan
Copy link
Collaborator

weirdan commented Nov 27, 2022

4.x branch is closed now as we prepare for the 5.0 release. Please target the master branch instead.

@orklah
Copy link
Collaborator

orklah commented Dec 20, 2022

Closing as this targets 4.x which is closed. Please reopen on master going forward

@orklah orklah closed this Dec 20, 2022
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

4 participants