-
-
Notifications
You must be signed in to change notification settings - Fork 571
Clone NodeList in Node::cloneDeep()
#991
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
Codecov Report
@@ Coverage Diff @@
## master #991 +/- ##
============================================
+ Coverage 94.43% 94.46% +0.03%
Complexity 50 50
============================================
Files 118 118
Lines 9607 9608 +1
============================================
+ Hits 9072 9076 +4
+ Misses 535 532 -3
Continue to review full report at Codecov.
|
Related to upstream :) Also, I've added two |
|
Inviting @simPod to the party, can you try and convince PHPStan that |
|
I believe it's something that's missing on phpstan's side. https://phpstan.org/r/f72cb47e-b951-40c2-a52f-8510c0170261 There's still a lot of work around generics there 🤷🏾♀️ baseline? |
|
Yeah. I am somewhat baffled by the error message in your example:
Just from reading, it seems to me that PHPStan actually understood what is going on. However, it does not seem to recognize that Baseline it is then 👍 |
Node::cloneDeep() will clone NodeList correctly.NodeList in Node::cloneDeep()
Fixes #988