My IDE warned me about a type mismatch on some operations and I found out that Net_DNS2_Resolver:query() returns the response obtained from Net_DNS2:sendPacket() which happens to be a Net_DNS2_Packet_Response object, or false on error.
This makes the phpdoc on Net_DNS2_Resolver:query() incorrect, as it states that the method returns a Net_DNS2_RR object and thus raises the inspections warnings.
My IDE warned me about a type mismatch on some operations and I found out that
Net_DNS2_Resolver:query()
returns the response obtained fromNet_DNS2:sendPacket()
which happens to be aNet_DNS2_Packet_Response
object, orfalse
on error.This makes the phpdoc on
Net_DNS2_Resolver:query()
incorrect, as it states that the method returns aNet_DNS2_RR object
and thus raises the inspections warnings.Not a big deal but reporting it nevertheless.