I got the following error when calling $pushgateway->delete(...):
Argument 1 passed to Prometheus\PushGateway::doRequest() must be an instance of Prometheus\CollectorRegistry, null given, called in /.../vendor/jimdo/prometheus_client_php/src/Prometheus/PushGateway.php on line 54
#0 /.../vendor/jimdo/prometheus_client_php/src/Prometheus/PushGateway.php(54): Prometheus\PushGateway->doRequest(NULL, 'resque-php', Array, 'delete')
...
Because delete method was calling doRequest with null $collectorRegistry, but the method definition did not permit it.
I simple change doRequest to accept null $collectorRegistry.
I got the following error when calling
$pushgateway->delete(...)
:Because delete method was calling doRequest with null $collectorRegistry, but the method definition did not permit it.
I simple change doRequest to accept null $collectorRegistry.