Skip to content
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

Fix PHP notice: Undefined index: samples #128

Merged
merged 4 commits into from
Nov 6, 2023
Merged

Conversation

pluk77
Copy link
Contributor

@pluk77 pluk77 commented Sep 15, 2023

collectHistograms() in the storage adapters does not define ['samples'] as the default array keys and as such a notice is thrown when the MetricFamilySamples::__construct($data) is called when no samples are available.

pluk77 and others added 4 commits September 15, 2023 09:03
collectHistograms() in the storage adapters does not define ['samples'] as the default array keys and as such a notice is thrown when the MetricFamilySamples::__construct($data) is called when no samples are available.
@LKaemmerling LKaemmerling merged commit 735ace7 into PromPHP:main Nov 6, 2023
31 checks passed
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