kevinoo / phpWhois

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

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

Closed uksarkar closed 1 year 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 1 year ago

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