Skip to content

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

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

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

phar.yml

on: pull_request
Download base SHA PHAR
0s
Download base SHA PHAR
integration-tests  /  Check PHAR checksum
4s
integration-tests / Check PHAR checksum
extension-tests  /  Check PHAR checksum
4s
extension-tests / Check PHAR checksum
other-tests  /  Check PHAR checksum
6s
other-tests / Check PHAR checksum
Commit PHAR
0s
Commit PHAR
Checksum PHAR
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 - 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:98d426b903025f31fcfd634c070b221021bc4c6e14721fef8eb087dd1fd92417
baselines-bladestan-baseline.neon
403 Bytes
sha256:110bfef978bd12eaf5f354406c623559143e52961f12122c3e4401d59bba52be
baselines-doctrine-orm-baseline.neon
1.55 KB
sha256:375e104ac80d881109e64b68f9fdfdb6ad62d9a93f11db8ece3fcf54a9a10200
baselines-rector-baseline.neon
506 Bytes
sha256:4a7c733e55d92c0953093d27b6f0bca4ba54e48bfb78991560cf6df5b301607d
phar-file
3.63 MB
sha256:c9e41be9cdf8df56ed320f96d1b4382dea5fa8b6684b887d5763e166bb147e1d
phar-file-checksum
3.63 MB
sha256:e87ee8261bf14e513bc85cba157a594d8e3ebfecac1a479844b79bd71e2fbdd5