Skip to content

Update dev dependencies #187

New issue

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

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

simonhammes
Copy link

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
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
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.

1 participant