Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Be sure $array is an array to avoid errors in the log
Signed-off-by: emanuele <emanuele45@gmail.com>
- Loading branch information
9a5be41
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When is it not an array?
9a5be41
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The first time it is called from the outside. It may happen.
9a5be41
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Prone to error. We should keep away from this and move to type hint... in the future
9a5be41
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But type hinting returns an error and wouldn't be much different from not having the is_array check.
9a5be41
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.