Skip to content

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

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

Triggered via pull request July 21, 2025 12:42
Status Failure
Total duration 7m 10s
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
6s
extension-tests / Check PHAR checksum
other-tests  /  Check PHAR checksum
5s
other-tests / Check PHAR checksum
Commit PHAR
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 - rectorphp/rector-src
Process completed with exit code 1.
integration-tests / Integration - rectorphp/rector-src
Process completed with exit code 1.
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 - 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:0dee5bf80bfe3c7292be054f84114a86fc57dfff844021e0e7a2f99fc2643663
baselines-bladestan-baseline.neon Expired
403 Bytes
sha256:a3001128c5ae15f64ef746f3f713b9274d5938008844bcdb611f2012d4e178ea
baselines-doctrine-orm-baseline.neon Expired
1.55 KB
sha256:e57e3da43b1909c725fc445af5e17a43a0f096ce7f51e5b8fb08228fdc6a4b74
baselines-rector-baseline.neon Expired
506 Bytes
sha256:dd5ad60a2b36b9e77eac917c3826217f2fb959528b10288027b1c934f9870058
phar-file Expired
3.63 MB
sha256:28647d0e0c3af91c6aa09df8b5f2465a55bc75e93a3d5a5b1a87b5b9c0c2e403
phar-file-checksum Expired
3.63 MB
sha256:89eece5334edcfd58774b064c3215dfebe4ad342c89bc8af4139a8a799cc3004