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

Upgrading to HHVM 3.25 causes errors due to return type #909

Merged

Conversation

xxtanisxx
Copy link
Contributor

@xxtanisxx xxtanisxx commented Sep 27, 2018

Return type cannot be properly evaluated by PHP eval() function. Stripping out the following return type: tuple, array<*> or anything with <*> in it, HH\void, HH\this, HH\ImmVector, HH\ImmMap, HH\ImmSet.

The hope is HHVM have a replacement for eval. If not, this seems to be the best course forward

  • Add smoke test

@xxtanisxx xxtanisxx force-pushed the fix-return-type-errors-from-hhvm branch 3 times, most recently from f21ecac to 14c1998 Compare September 27, 2018 02:24
@davedevelopment
Copy link
Collaborator

This looks ok to me for now, please could you add a quick test? Just some sort of smoke test, nothing complicated.

@xxtanisxx xxtanisxx changed the title Upgrading to HHVM 3.25 causes errors due to return type [WIP] Upgrading to HHVM 3.25 causes errors due to return type Sep 27, 2018
@xxtanisxx xxtanisxx force-pushed the fix-return-type-errors-from-hhvm branch 3 times, most recently from 242c151 to 8875334 Compare September 28, 2018 04:33
@xxtanisxx xxtanisxx force-pushed the fix-return-type-errors-from-hhvm branch 2 times, most recently from 4992832 to 5b9644e Compare September 28, 2018 05:07
@xxtanisxx xxtanisxx force-pushed the fix-return-type-errors-from-hhvm branch from 5b9644e to 12b06e6 Compare September 28, 2018 05:20
@xxtanisxx xxtanisxx force-pushed the fix-return-type-errors-from-hhvm branch from c4b601b to 1a4af9c Compare September 28, 2018 07:14
@xxtanisxx xxtanisxx changed the title [WIP] Upgrading to HHVM 3.25 causes errors due to return type Upgrading to HHVM 3.25 causes errors due to return type Sep 28, 2018
@xxtanisxx
Copy link
Contributor Author

xxtanisxx commented Sep 28, 2018

Sorry, first time doing this. Not too sure what's the best approach for the test. Hope this will suffice.

The newly added test passed the hhvm smoke test. Thanks!

@davedevelopment
Copy link
Collaborator

Looks great to me, thank you 👍

@davedevelopment davedevelopment merged commit 248bbd3 into mockery:master Oct 2, 2018
@xxtanisxx xxtanisxx deleted the fix-return-type-errors-from-hhvm branch October 2, 2018 22:13
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