-
Notifications
You must be signed in to change notification settings - Fork 107
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
base: main
Are you sure you want to change the base?
Conversation
@@ -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) { |
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.
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) { |
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.
explode()
only returns false
(< PHP8) when $separator
is empty (https://www.php.net/manual/en/function.explode.php)
Signed-off-by: simonhammes <[email protected]>
Closes PromPHP#34 Signed-off-by: simonhammes <[email protected]>
Signed-off-by: simonhammes <[email protected]>
Signed-off-by: simonhammes <[email protected]>
Signed-off-by: simonhammes <[email protected]>
Signed-off-by: simonhammes <[email protected]>
Signed-off-by: simonhammes <[email protected]>
a5a60de
to
a59533d
Compare
No description provided.