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
public function isActive(): bool { if (empty($this->parser->getData()['stare_inactiv']['statusInactivi'] ?? null) || !is_bool($this->parser->getData()['stare_inactiv']['statusInactivi'] ?? null)) { return false; } return !$this->parser->getData()['stare_inactiv']['statusInactivi'] ?? false; }
this method always returns false. For function empty() false is also empty value.
The text was updated successfully, but these errors were encountered:
I think the entire function should be written as:
public function isActive(): bool { return !$this->parser->getData()['stare_inactiv']['statusInactivi']; }
As I understand the code above was for an older version of the API.
Sorry, something went wrong.
No branches or pull requests
this method always returns false. For function empty() false is also empty value.
The text was updated successfully, but these errors were encountered: