Skip to content

Conversation

@whytea91
Copy link

@whytea91 whytea91 commented Feb 3, 2026

No description provided.

@sibprogrammer sibprogrammer self-requested a review February 3, 2026 18:12
if ($xmlResult) {
$items[] = new Struct\Info($xmlResult);
$info = new Struct\Info($xmlResult);
$vars = is_object($info) ? get_object_vars($info) : [];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The condition is always true. Plus, it's a very strange way of checking property existence. isset or property_exists should be more suitable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants