Skip to content

array_rand() requires a non-empty-array as of php8 #22215

array_rand() requires a non-empty-array as of php8

array_rand() requires a non-empty-array as of php8 #22215

Triggered via pull request October 6, 2025 09:59
Status Failure
Total duration 11m 7s
Artifacts 6

phar.yml

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

Annotations

25 errors
extension-tests / phpstan-mockery (8.5) make tests
Process completed with exit code 2.
integration-tests / Integration - shipmonk-rnd/phpstan-rules
Process completed with exit code 1.
integration-tests / Integration - shipmonk-rnd/phpstan-rules: src/Rule/AllowComparingOnlyComparableTypesRule.php#L142
No error with identifier offsetAccess.notFound is reported on line 142.
integration-tests / Integration - bladestan/bladestan
Process completed with exit code 1.
integration-tests / Integration - bladestan/bladestan: src/TemplateCompiler/PHPStan/FileAnalyserProvider.php#L59
Method Bladestan\TemplateCompiler\PHPStan\FileAnalyserProvider::provide() throws checked exception PHPStan\DependencyInjection\MissingServiceException but it's missing from the PHPDoc `@throws` tag.
integration-tests / Integration - bladestan/bladestan: src/NodeAnalyzer/ViewVariableAnalyzer.php#L50
Method Bladestan\NodeAnalyzer\ViewVariableAnalyzer::resolve() throws checked exception ValueError but it's missing from the PHPDoc `@throws` tag.
integration-tests / Integration - bladestan/bladestan: src/Compiler/LivewireTagCompiler.php#L116
Dead catch - RuntimeException is never thrown in the try block.
integration-tests / Integration - doctrine/dbal
Process completed with exit code 1.
integration-tests / Integration - doctrine/dbal: src/Connections/PrimaryReadReplicaConnection.php#L250
Parameter #1 $input of function array_rand expects non-empty-array, array<array{application_name?: string, charset?: string, dbname?: string, defaultTableOptions?: array<string, mixed>, driver?: 'ibm_db2'|'mysqli'|'oci8'|'pdo_mysql'|'pdo_oci'|'pdo_pgsql'|'pdo_sqlite'|'pdo_sqlsrv'|'pgsql'|'sqlite3'|'sqlsrv', driverClass?: class-string<Doctrine\DBAL\Driver>, driverOptions?: array<mixed>, host?: string, ...}> given.
integration-tests / Integration - efabrica-team/phpstan-latte tests
Process completed with exit code 1.
integration-tests / Integration - shopware/shopware: src/Core/Framework/Demodata/Generator/CustomerGenerator.php#L186
Parameter #1 $input of function array_rand expects non-empty-array, list<array{id: non-falsy-string, countryId: non-falsy-string, salutationId: non-falsy-string, title: string, firstName: string, lastName: mixed, street: mixed, zipcode: mixed, ...}> given.
integration-tests / Integration - shopware/shopware: src/Core/Framework/Demodata/Generator/CustomerGenerator.php#L185
Parameter #1 $input of function array_rand expects non-empty-array, list<array{id: non-falsy-string, countryId: non-falsy-string, salutationId: non-falsy-string, title: string, firstName: string, lastName: mixed, street: mixed, zipcode: mixed, ...}> given.
integration-tests / Integration - shopware/shopware: src/Core/Framework/Demodata/Generator/CustomerGenerator.php#L184
Parameter #1 $input of function array_rand expects non-empty-array, list<mixed> given.
integration-tests / Integration - shopware/shopware: src/Core/Framework/Demodata/Generator/CustomerGenerator.php#L117
Parameter #1 $input of function array_rand expects non-empty-array, list<mixed> given.
integration-tests / Integration - shopware/shopware: src/Core/Framework/Demodata/Generator/CustomerGenerator.php#L106
Parameter #1 $input of function array_rand expects non-empty-array, list<mixed> given.
integration-tests / Integration - shopware/shopware: src/Core/Framework/Demodata/Generator/CustomerGenerator.php#L98
Parameter #1 $input of function array_rand expects non-empty-array, list<mixed> given.
integration-tests / Integration - shopware/shopware: src/Core/Framework/Demodata/Generator/CustomFieldGenerator.php#L86
Parameter #1 $input of function array_rand expects non-empty-array, array<string, array<string, mixed>> given.
integration-tests / Integration - shopware/shopware: src/Core/Content/Cms/Command/CreatePageCommand.php#L172
Parameter #1 $input of function array_rand expects non-empty-array, array<string> given.
integration-tests / Integration - shopware/shopware: src/Core/Content/Cms/Command/CreatePageCommand.php#L158
Parameter #1 $input of function array_rand expects non-empty-array, array<string> given.
integration-tests / Integration - shopware/shopware: src/Core/Content/Cms/Command/CreatePageCommand.php#L144
Parameter #1 $input of function array_rand expects non-empty-array, array<string> given.

Artifacts

Produced during runtime
Name Size Digest
baselines-bladestan-baseline.neon
572 Bytes
sha256:3134c9b4412e21c4de410d5f6d0e318eef6bfa0fcbee5630a6f2e3c8f800e1b1
baselines-doctrine-dbal-baseline.neon
978 Bytes
sha256:80784bcf469caf8ddef25a1d8631a389757a61e5253ab9d6d06f3ed58ab784c3
baselines-shipmonk-rnd-baseline.neon
198 Bytes
sha256:baed002c85e4aeb0608bdac5838bd8fc3437f218b1f379cbab243c82cc3b353f
baselines-shopware-baseline.neon
3.32 KB
sha256:3dcd9b3c124d39c5c1e627be7d9540811ca5aeb8fe66bc46c963d9171e210069
phar-file
3.68 MB
sha256:79fec101b74ba56d87db28bd57177b85a262403ff3ee6878dac8de74f9c763bf
phar-file-checksum
3.68 MB
sha256:5773b5a1da34a701cf9b9bad969822574e3393f2c5a418a2b267cc3fc9485a8b