Skip to content

Updating to PHPStan Level 10 #5

Updating to PHPStan Level 10

Updating to PHPStan Level 10 #5

Triggered via pull request May 24, 2026 23:29
Status Success
Total duration 15s
Artifacts 1

cognitive-code-analysis.yaml

on: pull_request
Cognitive Code Analysis
13s
Cognitive Code Analysis
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 11 warnings
Cognitive Code Analysis: home/runner/work/cognitive-code-analysis/cognitive-code-analysis/src/Business/CodeCoverage/CloverReader.php#L217
Method extractMethodCoverageFromLines has cognitive complexity 1.9 (threshold: 0.5)
Cognitive Code Analysis: home/runner/work/cognitive-code-analysis/cognitive-code-analysis/src/Business/Churn/Report/TreemapMath.php#L117
Method calculateTreemapLayout has cognitive complexity 1.4 (threshold: 0.5)
Cognitive Code Analysis
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/checkout@v4, actions/github-script@v7, actions/upload-artifact@v4. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Node.js 20 will be removed from the runner on September 16th, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
Cognitive Code Analysis: home/runner/work/cognitive-code-analysis/cognitive-code-analysis/src/Business/Cognitive/CognitiveMetrics.php#L131
Method setRequiredMetricProperties has cognitive complexity 0.6 (threshold: 0.5)
Cognitive Code Analysis: home/runner/work/cognitive-code-analysis/cognitive-code-analysis/src/Business/Cognitive/Baseline/Baseline.php#L104
Method loadBaselineWithValidation has cognitive complexity 0.7 (threshold: 0.5)
Cognitive Code Analysis: home/runner/work/cognitive-code-analysis/cognitive-code-analysis/src/Business/CodeCoverage/CloverReader.php#L154
Method extractMethodsCoverage has cognitive complexity 0.8 (threshold: 0.5)
Cognitive Code Analysis: home/runner/work/cognitive-code-analysis/cognitive-code-analysis/src/Business/CodeCoverage/CloverReader.php#L93
Method getCoverageDetails has cognitive complexity 0.9 (threshold: 0.5)

Artifacts

Produced during runtime
Name Size Digest
cca-report
2.84 KB
sha256:06ab148025753eb79d76b47ef8cb3873793e99e7327e78a011144413f7974bf0