Skip to content

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

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

Triggered via pull request July 18, 2025 23:22
Status Failure
Total duration 6m 50s
Artifacts 6

phar.yml

on: pull_request
Download base SHA PHAR
Download base SHA PHAR
integration-tests  /  Check PHAR checksum
5s
integration-tests / Check PHAR checksum
extension-tests  /  Check PHAR checksum
4s
extension-tests / Check PHAR checksum
other-tests  /  Check PHAR checksum
5s
other-tests / Check PHAR checksum
Commit PHAR
0s
Commit PHAR
Checksum PHAR
Checksum PHAR
PHAR Prefix Diff
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 - 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 - Rector tests
Process completed with exit code 2.
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 - 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-
8.86 MB
sha256:fb02c214dd10ac6118b7e1a4b7eaa4532bfd99282bcf40e1dd4cd96cfcfa1f42
baselines-bladestan-baseline.neon
403 Bytes
sha256:7d88f1d04b434a690e425db14642c094547eb568be7e42be679036dd11825c79
baselines-doctrine-orm-baseline.neon
1.55 KB
sha256:c408b635ac40558d56ab1b73344b2162e1d92a3af41a65c003faa5716b5a6dfc
baselines-rector-baseline.neon
506 Bytes
sha256:5216a76795d3ed4b9cea4ca5c2f9255f0acbff98cda7055ffc94c2582bef4b96
phar-file
3.63 MB
sha256:c9bc17d5a68ceea5ba5a9b02a638ca95bd3531f97d4731b4a33009e6df46e750
phar-file-checksum
3.63 MB
sha256:521ab413aa5e57caec91f916573ea3eb72dbe86969b2ae819dcf9def9643d3fc