Skip to content

Catch invalid JSON from Redis and throw an error #433

Catch invalid JSON from Redis and throw an error

Catch invalid JSON from Redis and throw an error #433

Re-run triggered January 27, 2025 14:43
Status Failure
Total duration 2m 27s
Artifacts

checks.yml

on: pull_request
Code Checks
12s
Code Checks
Matrix: phpstan
Fit to window
Zoom out
Zoom in

Annotations

25 errors and 8 warnings
PHPStan on PHP 8.1: src/Prometheus/Exception/MetricJsonException.php#L13
Property Prometheus\Exception\MetricJsonException::$metricMetaData has no type specified.
PHPStan on PHP 8.1: src/Prometheus/Exception/MetricJsonException.php#L14
Deprecated in PHP 8.0: Required parameter $metricMetaData follows optional parameter $code.
PHPStan on PHP 8.1: src/Prometheus/Exception/MetricJsonException.php#L14
Method Prometheus\Exception\MetricJsonException::__construct() has parameter $code with no type specified.
PHPStan on PHP 8.1: src/Prometheus/Exception/MetricJsonException.php#L14
Method Prometheus\Exception\MetricJsonException::__construct() has parameter $message with no type specified.
PHPStan on PHP 8.1: src/Prometheus/Storage/PDO.php#L141
No error to ignore is reported on line 141.
PHPStan on PHP 8.1: src/Prometheus/Storage/Redis.php#L739
Method Prometheus\Storage\Redis::throwMetricJsonException() has parameter $raw with no type specified.
PHPStan on PHP 8.1: src/Prometheus/Storage/RedisNg.php#L720
Method Prometheus\Storage\RedisNg::throwMetricJsonException() has parameter $raw with no type specified.
PHPStan on PHP 8.1
Process completed with exit code 1.
PHPStan on PHP 8.3: src/Prometheus/Exception/MetricJsonException.php#L13
Property Prometheus\Exception\MetricJsonException::$metricMetaData has no type specified.
PHPStan on PHP 8.3: src/Prometheus/Exception/MetricJsonException.php#L14
Deprecated in PHP 8.0: Required parameter $metricMetaData follows optional parameter $code.
PHPStan on PHP 8.3: src/Prometheus/Exception/MetricJsonException.php#L14
Method Prometheus\Exception\MetricJsonException::__construct() has parameter $code with no type specified.
PHPStan on PHP 8.3: src/Prometheus/Exception/MetricJsonException.php#L14
Method Prometheus\Exception\MetricJsonException::__construct() has parameter $message with no type specified.
PHPStan on PHP 8.3: src/Prometheus/Storage/PDO.php#L141
No error to ignore is reported on line 141.
PHPStan on PHP 8.3: src/Prometheus/Storage/Redis.php#L739
Method Prometheus\Storage\Redis::throwMetricJsonException() has parameter $raw with no type specified.
PHPStan on PHP 8.3: src/Prometheus/Storage/RedisNg.php#L720
Method Prometheus\Storage\RedisNg::throwMetricJsonException() has parameter $raw with no type specified.
PHPStan on PHP 8.3
Process completed with exit code 1.
Code Checks
Process completed with exit code 2.
PHPStan on PHP 8.2: src/Prometheus/Exception/MetricJsonException.php#L13
Property Prometheus\Exception\MetricJsonException::$metricMetaData has no type specified.
PHPStan on PHP 8.2: src/Prometheus/Exception/MetricJsonException.php#L14
Deprecated in PHP 8.0: Required parameter $metricMetaData follows optional parameter $code.
PHPStan on PHP 8.2: src/Prometheus/Exception/MetricJsonException.php#L14
Method Prometheus\Exception\MetricJsonException::__construct() has parameter $code with no type specified.
PHPStan on PHP 8.2: src/Prometheus/Exception/MetricJsonException.php#L14
Method Prometheus\Exception\MetricJsonException::__construct() has parameter $message with no type specified.
PHPStan on PHP 8.2: src/Prometheus/Storage/PDO.php#L141
No error to ignore is reported on line 141.
PHPStan on PHP 8.2: src/Prometheus/Storage/Redis.php#L739
Method Prometheus\Storage\Redis::throwMetricJsonException() has parameter $raw with no type specified.
PHPStan on PHP 8.2: src/Prometheus/Storage/RedisNg.php#L720
Method Prometheus\Storage\RedisNg::throwMetricJsonException() has parameter $raw with no type specified.
PHPStan on PHP 8.2
Process completed with exit code 1.
PHPStan on PHP 8.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
PHPStan on PHP 8.1
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
PHPStan on PHP 8.3
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
PHPStan on PHP 8.2
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
Code Checks
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
PHPStan on PHP 8.3
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Code Checks
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
PHPStan on PHP 8.2
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636