kevinoo / phpWhois

phpWhois general repository
https://phpwhois.pw
GNU General Public License v2.0
10 stars 1 forks source link

BUG: Return value must be of type array, bool returned #2

Closed uksarkar closed 11 months ago

uksarkar commented 1 year ago

Handlers\AbstractHandler::generic_parser_a_blocks()

Issue: The return type mitchmatched

Details: Return type of this method is an array, but the initial value of the $blocks variable is false so when it's falling back to the default it's throwing a TypeError.

Possible fix: The initial value of the $blocks variable should be an array

kevinoo commented 11 months ago

Hi @uksarkar thanks for the tip! I released the v6.3.0 with your suggestion :muscle: