We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'm getting the following exception thrown when calling $resourceRecord->getComments() and the value for $resourceRecord->comments is null:
TypeError: Return value of Exonet\Powerdns\Resources\ResourceRecord::getComments() must be of the type array, null returned
Perhaps $comments should be initialized to [] in ResourceRecord.php, line 29?
Or if that's not a good idea, then perhaps we could have a hasComments() method, so we can know when to call getComments()?
As it is right now, not even a try/catch block will suppress the exception.
The text was updated successfully, but these errors were encountered:
Hi @OneHatRepo,
Valid point. I'll address this together with #35.
Sorry, something went wrong.
0b6b36c
trizz
No branches or pull requests
I'm getting the following exception thrown when calling $resourceRecord->getComments() and the value for $resourceRecord->comments is null:
TypeError: Return value of Exonet\Powerdns\Resources\ResourceRecord::getComments() must be of the type array, null returned
Perhaps $comments should be initialized to [] in ResourceRecord.php, line 29?
Or if that's not a good idea, then perhaps we could have a hasComments() method, so we can know when to call getComments()?
As it is right now, not even a try/catch block will suppress the exception.
The text was updated successfully, but these errors were encountered: