Commit 735ace7
Fix PHP notice: Undefined index: samples (#128)
* Fix PHP notice: Undefined index: samples
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.
* added space
---------
Co-authored-by: Lukas Kämmerling <lukas.kaemmerling@hetzner-cloud.de>1 parent 6f306e9 commit 735ace7
1 file changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
44 | | - | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
45 | 47 | | |
46 | 48 | | |
47 | 49 | | |
| |||
0 commit comments