The PHP Java extension employs a simple, but fairly effective, metric for determining which overload is the best match.
Overload resolution is in general a hard problem given the differences in types between the two languages. The PHP Java extension employs a simple, but fairly effective, metric for determining which overload is the best match.