Closed WinterSilence closed 2 years ago
What is your use case for wanting to compare closures?
And please write commit messages that are more descriptive than just Update ObjectComparatorTest.php
. Thanks!
@sebastianbergmann
This is useful to compare complex objects uses closures as properties. The native comparison $closure == $closure2
work as $closure === $closure2
, my solution not so strict.
And please write commit messages that are more descriptive than just Update ObjectComparatorTest.php
😕 sorry, last commits only try normalize code style
Thank you for your contribution. I appreciate the time you invested in preparing this pull request. However, I have decided not to merge it.
@sebastianbergmann what's reason?
Example of compare closures https://3v4l.org/NbIOq#v7.3.33