-
-
Notifications
You must be signed in to change notification settings - Fork 824
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
Declare strict types in CiviUnitTestCase #26002
Declare strict types in CiviUnitTestCase #26002
Conversation
(Standard links)
|
I'll figure out the style once I see how the rest plays out... |
test this please |
1 similar comment
test this please |
deee72f
to
6304fcc
Compare
test this please |
9fbc774
to
812fa0d
Compare
Declare strict types in test
812fa0d
to
f34cb72
Compare
test this please |
@eileenmcnaughton I'm really surprised that passed. Are we sure it actually worked?
Because we do that a lot. |
@colemanw the first time I tried this it failed on passing NULL to regex - but note I think it only works on functions called directly from the class in question & I did a pass a while back on that |
@colemanw ALSO I think type hinting on numbers will co-erce numeric to int (at least in some php versions) |
Overview
Declare strict types in CiviUnitTestCase
Before
Strict types not declared in unit tests
After
Strict types declared on main base class
Technical Details
My reading of
https://www.phptutorial.net/php-tutorial/php-strict_types/
is that
Comments
Let's see what this throws up...