-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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: Remove unused field $maxDepth from IsEqual constraint #3335
Fix: Remove unused field $maxDepth from IsEqual constraint #3335
Conversation
@@ -55,7 +50,6 @@ public function __construct($value, float $delta = 0.0, int $maxDepth = 10, bool | |||
|
|||
$this->value = $value; | |||
$this->delta = $delta; | |||
$this->maxDepth = $maxDepth; |
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.
Field is assigned a value, but never used.
Removal of $maxDepth
from constructor indicates a BC issue, and should probably be targeted at PHPUnit 8.0, then.
I would like to understand when |
Codecov Report
@@ Coverage Diff @@
## master #3335 +/- ##
============================================
- Coverage 82.61% 82.61% -0.01%
Complexity 3533 3533
============================================
Files 143 143
Lines 9331 9330 -1
============================================
- Hits 7709 7708 -1
Misses 1622 1622
Continue to review full report at Codecov.
|
Iβll have a look after breakfast! |
I might be wrong, but I think it is d38ea8f. To find it, I ran
Does that make sense? |
Thanks. It appears that this functionality has not worked for quite some time. Apparently nobody is missing it, I certainly don't miss it, so lets go ahead and remove its remnants. However, I would like to do this atomically for all occurrences of |
Do you want to hold off with this until work has started on PHPUnit 8, then? Just to make sure I understand correctly. |
Yes. This will be done in |
But it will be deprecated first, right? |
This PR
$maxDepth
from theIsEqual
constraintRelated #3180.
πββοΈ
$maxDepth
still needs to be removed from a lot of other places, which partially constitute BC issues. Happy to work on it, if there are no objections!