Skip to content

Conversation

@TobiasReavo
Copy link

No description provided.

@TobiasReavo TobiasReavo requested a review from kabarakh October 29, 2025 08:02
return;
}
$value = $matches[0];
$isEmpty = ($value === null) || ($value === '') || (is_array($value) && count($value) === 0);
Copy link
Member

Choose a reason for hiding this comment

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

ist das nicht einfach empty()?

Copy link
Member

Choose a reason for hiding this comment

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

außerdem gäbe es auch ein assertEmpty von Assert

Copy link
Author

Choose a reason for hiding this comment

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

Nein, da empty auch bei 0 oder '0' true ausgeben würde und das bei einem JSON ein valider Wert ist.

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

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants