-
-
Notifications
You must be signed in to change notification settings - Fork 108
#143 -- Add isInitialized check for PHP 7.4 typed properties. #144
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
Conversation
|
Minor update: the |
|
Thanks for the patch! I think for the test you could create a fixture class with typed properties along the existing ones, a test cloning it once the properties are initialised and another when it's not. Since this test should be done only in PHP 7.4 you can use a |
|
I've created some PHP-7.4-specific unit tests and a new test class namespace to specifically address this functionality. I also added PHP 7.4 as a testing target for Travis CI. Coveralls seems to think that the overall coverage is reduced...since this is a PHP 7.4-specific block of code, maybe that check should be suppressed for other versions? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since the build issue is just coveralls being picky, to me it's OK to merge.
@theofidry good for you?
|
Good for me 👍
…On Sun 15 Dec 2019 at 19:10, Matthieu Napoli ***@***.***> wrote:
***@***.**** approved this pull request.
Since the build issue is just coveralls being picky, to me it's OK to
merge.
@theofidry <https://github.com/theofidry> good for you?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#144?email_source=notifications&email_token=ABHPVAND2JATYITT3N7UJQ3QYZXJDA5CNFSM4JX2PIDKYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCPHCZSI#pullrequestreview-332278985>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABHPVAPUSASZW6R7VCLWB7TQYZXJDANCNFSM4JX2PIDA>
.
|
|
Thank you @SlvrEagle23 |
See issue #143 for details.
Some help writing the unit tests for this would be much appreciated; not sure how to best approach testing a version-specific piece of functionality like this.