Skip to content

Catch invalid JSON from Redis and throw an error #435

Catch invalid JSON from Redis and throw an error

Catch invalid JSON from Redis and throw an error #435

Re-run triggered January 28, 2025 18:12
Status Failure
Total duration 37s
Artifacts

checks.yml

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

Annotations

22 errors and 4 warnings
Code Checks
Process completed with exit code 2.
PHPStan on PHP 8.1: src/Prometheus/Exception/MetricJsonException.php#L13
Property Prometheus\Exception\MetricJsonException::$metricName has no type specified.
PHPStan on PHP 8.1: src/Prometheus/Exception/MetricJsonException.php#L14
Constructor of class Prometheus\Exception\MetricJsonException has an unused parameter $metricName.
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/Exception/MetricJsonException.php#L17
Undefined variable: $metricMetaData
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
Process completed with exit code 1.
PHPStan on PHP 8.3: src/Prometheus/Exception/MetricJsonException.php#L13
Property Prometheus\Exception\MetricJsonException::$metricName has no type specified.
PHPStan on PHP 8.3: src/Prometheus/Exception/MetricJsonException.php#L14
Constructor of class Prometheus\Exception\MetricJsonException has an unused parameter $metricName.
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/Exception/MetricJsonException.php#L17
Undefined variable: $metricMetaData
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
Process completed with exit code 1.
PHPStan on PHP 8.2: src/Prometheus/Exception/MetricJsonException.php#L13
Property Prometheus\Exception\MetricJsonException::$metricName has no type specified.
PHPStan on PHP 8.2: src/Prometheus/Exception/MetricJsonException.php#L14
Constructor of class Prometheus\Exception\MetricJsonException has an unused parameter $metricName.
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/Exception/MetricJsonException.php#L17
Undefined variable: $metricMetaData
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
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
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
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