Skip to content

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

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" #20700

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

phar.yml

on: pull_request
Download base SHA PHAR
0s
Download base SHA PHAR
integration-tests  /  Check PHAR checksum
7s
integration-tests / Check PHAR checksum
extension-tests  /  Check PHAR checksum
4s
extension-tests / Check PHAR checksum
other-tests  /  Check PHAR checksum
4s
other-tests / Check PHAR checksum
Commit PHAR
0s
Commit PHAR
Checksum PHAR
0s
Checksum PHAR
PHAR Prefix Diff
0s
PHAR Prefix Diff
Matrix: integration-tests / integration-run-phpstan
Matrix: integration-tests / integration-tests
Matrix: extension-tests / Extension Tests
Matrix: other-tests / Other Tests
integration-tests  /  Integration - Update baselines
integration-tests / Integration - Update baselines
Fit to window
Zoom out
Zoom in

Annotations

12 errors
integration-tests / Integration - shipmonk-rnd/phpstan-rules
Process completed with exit code 1.
integration-tests / Integration - shipmonk-rnd/phpstan-rules
Process completed with exit code 1.
integration-tests / Integration - shipmonk-rnd/phpstan-rules: tests/Rule/EnforceReadonlyPublicPropertyRuleTest.php#L37
No error with identifier phpstanApi.constructor is reported on line 37.
integration-tests / Integration - shipmonk-rnd/phpstan-rules: tests/Rule/EnforceNativeReturnTypehintRuleTest.php#L66
No error with identifier phpstanApi.constructor is reported on line 66.
integration-tests / Integration - shipmonk-rnd/phpstan-rules: tests/Rule/EnforceClosureParamNativeTypehintRuleTest.php#L61
No error with identifier phpstanApi.constructor is reported on line 61.
integration-tests / Integration - rectorphp/rector-src
Process completed with exit code 1.
integration-tests / Integration - rectorphp/rector-src
Process completed with exit code 1.
integration-tests / Integration - Rector tests
Process completed with exit code 2.
integration-tests / Integration - bladestan/bladestan
Process completed with exit code 1.
integration-tests / Integration - bladestan/bladestan: src/TemplateCompiler/PHPStan/FileAnalyserProvider.php#L37
Method Bladestan\TemplateCompiler\PHPStan\FileAnalyserProvider::provide() throws checked exception PHPStan\DependencyInjection\MissingServiceException but it's missing from the PHPDoc @throws tag.
integration-tests / Integration - doctrine/orm
Process completed with exit code 1.
integration-tests / Integration - doctrine/orm: src/Internal/Hydration/AbstractHydrator.php#L358
Method Doctrine\ORM\Internal\Hydration\AbstractHydrator::gatherRowData() should return array{data: array<array>, newObjects?: array<array{class: ReflectionClass, args: array, obj: object}>, scalars?: array} but returns array{data: array<non-empty-array>, newObjects: array<array{class: mixed, args: non-empty-array, obj?: mixed}>, scalars?: non-empty-array}.

Artifacts

Produced during runtime
Name Size Digest
baselines- Expired
8.86 MB
sha256:8a35e1445915f3c28ce48d7e499abacb50e1cf6a24aec6c076b1822d3e2655b7
baselines-bladestan-baseline.neon Expired
403 Bytes
sha256:201e7509f5dd849aee2e5ce2bb4709c6503ff9ec54232f4fcb96d0a11e8d324d
baselines-doctrine-orm-baseline.neon Expired
1.55 KB
sha256:83ae89244d329147d846862c02d889c198900f560fcc341769c78e60c8f18204
baselines-rector-baseline.neon Expired
506 Bytes
sha256:ec67d27c322f991177ec34ad7408d1d0edc4a599a4eb7ffc066ce6035977e798
phar-file Expired
3.63 MB
sha256:58968d111eadcd92e5082f65a0e50db45fa0439b8a961d0eaceb0f692a820baa
phar-file-checksum Expired
3.63 MB
sha256:a3ac7a5d476b4f6e4a44421fb57ad52b046492a57edcab58594830b1ca0f8903