Skip to content

Conversation

simonhammes
Copy link
Contributor

No description provided.

@@ -438,11 +438,10 @@ private function buildPermutationTree(array $labelValues): \Generator /** @phpst
if (count($labelValues) > 0) {
$lastIndex = array_key_last($labelValues);
$currentValue = array_pop($labelValues);
if ($currentValue != null) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This change seems safe to me, as count() > 0 ensures that array_pop() won't return null (assuming that the array element itself won't evaluate to null)

@@ -534,9 +534,6 @@ private function collectSummaries(): array
$samples = [];
foreach ($values as $valueKey) {
$rawValue = explode(":", $valueKey);
if ($rawValue === false) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

explode() only returns false (< PHP8) when $separator is empty (https://www.php.net/manual/en/function.explode.php)

@simonhammes simonhammes force-pushed the update-dev-dependencies branch from a5a60de to a59533d Compare June 21, 2025 10:52
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