Catch invalid JSON from Redis and throw an error #435
Annotations
7 errors and 1 warning
Run PHPStan:
src/Prometheus/Exception/MetricJsonException.php#L13
Property Prometheus\Exception\MetricJsonException::$metricName has no type specified.
|
Run PHPStan:
src/Prometheus/Exception/MetricJsonException.php#L14
Constructor of class Prometheus\Exception\MetricJsonException has an unused parameter $metricName.
|
Run PHPStan:
src/Prometheus/Exception/MetricJsonException.php#L14
Method Prometheus\Exception\MetricJsonException::__construct() has parameter $code with no type specified.
|
Run PHPStan:
src/Prometheus/Exception/MetricJsonException.php#L14
Method Prometheus\Exception\MetricJsonException::__construct() has parameter $message with no type specified.
|
Run PHPStan:
src/Prometheus/Exception/MetricJsonException.php#L17
Undefined variable: $metricMetaData
|
Run PHPStan:
src/Prometheus/Storage/PDO.php#L141
No error to ignore is reported on line 141.
|
Run PHPStan
Process completed with exit code 1.
|
Your workflow is using a version of actions/cache that is scheduled for deprecation, actions/cache@v2. Please update your workflow to use either v3 or v4 of actions/cache to avoid interruptions. Learn more: https://github.blog/changelog/2024-12-05-notice-of-upcoming-releases-and-breaking-changes-for-github-actions/#actions-cache-v1-v2-and-actions-toolkit-cache-package-closing-down
|
Loading