Skip to content

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

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

Triggered via pull request July 21, 2025 12:32
Status Failure
Total duration 6m 39s
Artifacts 6

phar.yml

on: pull_request
Download base SHA PHAR
0s
Download base SHA PHAR
integration-tests  /  Check PHAR checksum
6s
integration-tests / Check PHAR checksum
extension-tests  /  Check PHAR checksum
5s
extension-tests / Check PHAR checksum
other-tests  /  Check PHAR checksum
6s
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
0s
integration-tests / Integration - Update baselines
Fit to window
Zoom out
Zoom in

Annotations

12 errors
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 - 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 - 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:4c17bc83967cad318f0597a78055d81eaf02d8f23dfdd01f4ce070399add18d0
baselines-bladestan-baseline.neon Expired
403 Bytes
sha256:4ef34ac53603bbf7aba897a09ba86a8573ffb436bd1a85cf53640ca57876596e
baselines-doctrine-orm-baseline.neon Expired
1.55 KB
sha256:beccc415705a66e5832ba58e64a45e9cdc688e0f2417b2f6c4abdbb37d182815
baselines-rector-baseline.neon Expired
506 Bytes
sha256:e16301687e21f77544300d1caa2b8cd1b43e377f01dfe9845d08e8153f8dd818
phar-file Expired
3.63 MB
sha256:74a8543d9a2134b9a54a93d63b7059fd217c2b87c7e3217730c1e7df5a84aab0
phar-file-checksum Expired
3.63 MB
sha256:0dfe765b59913ab0dea90a02726dc7c1f107d8d3dae08a80fbbf83b8a93786b4