Skip to content

Fix "Unsafe use of new static when trait enforces constructor via abstract method" #21904

Fix "Unsafe use of new static when trait enforces constructor via abstract method"

Fix "Unsafe use of new static when trait enforces constructor via abstract method" #21904

Triggered via pull request July 21, 2025 13:36
Status Failure
Total duration 54m 4s
Artifacts

static-analysis.yml

on: pull_request
Generate baseline
1m 44s
Generate baseline
Generate PHP baseline
1m 51s
Generate PHP baseline
Matrix: PHPStan with result cache
Matrix: PHPStan
Fit to window
Zoom out
Zoom in

Annotations

1 error
PHPStan (7.4, windows-latest)
The hosted runner lost communication with the server. Anything in your workflow that terminates the runner process, starves it for CPU/Memory, or blocks its network access can cause this error.