Catch invalid JSON from Redis and throw an error #433
Annotations
8 errors and 2 warnings
Run PHPStan:
src/Prometheus/Exception/MetricJsonException.php#L13
Property Prometheus\Exception\MetricJsonException::$metricMetaData has no type specified.
|
Run PHPStan:
src/Prometheus/Exception/MetricJsonException.php#L14
Deprecated in PHP 8.0: Required parameter $metricMetaData follows optional parameter $code.
|
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/Storage/PDO.php#L141
No error to ignore is reported on line 141.
|
Run PHPStan:
src/Prometheus/Storage/Redis.php#L739
Method Prometheus\Storage\Redis::throwMetricJsonException() has parameter $raw with no type specified.
|
Run PHPStan:
src/Prometheus/Storage/RedisNg.php#L720
Method Prometheus\Storage\RedisNg::throwMetricJsonException() has parameter $raw with no type specified.
|
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
|
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Loading