I'm trying to write an extension that recognizes the existence of two methods (__is_identical_to and __is_equal_to) to override that default behavior of the operators === and == respectively.
Reading the documentation, I could not find any explanation about how to do it. Would it be possible?
Hello guys!
I'm trying to write an extension that recognizes the existence of two methods (
__is_identical_to
and__is_equal_to
) to override that default behavior of the operators===
and==
respectively.Reading the documentation, I could not find any explanation about how to do it. Would it be possible?
Thanks!