- Issue created by @mstrelan
- Status changed to Needs review
4 months ago 1:47am 12 September 2024 - Status changed to Needs work
4 months ago 1:55am 12 September 2024
TypeError: PNX\Prometheus\Metric::__construct(): Argument #3 ($help) must be of type string, Drupal\Core\StringTranslation\TranslatableMarkup given, called in /data/app/modules/contrib/prometheus_webform/src/Plugin/MetricsCollector/SubmissionsCollector.php on line 61 in PNX\Prometheus\Metric->__construct() (line 46 of /data/vendor/previousnext/php-prometheus/src/Metric.php).
Cast $this->getDescription()
to string. Arguably the constructor could be updated to accept string|\Stringable
.
Needs work
1.0
Code