Skip to content

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

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

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

Triggered via pull request October 2, 2025 08:09
Status Failure
Total duration 11m 41s
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 24s
integration-tests / PMMP Tests
Matrix: integration-tests / integration-tests
Checksum PHAR
Checksum PHAR
PHAR Prefix Diff
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

43 errors
extension-tests / phpstan-mockery (8.5) make tests
Process completed with exit code 2.
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/Schema/AbstractSchemaManager.php#L738
Offset 'flags' might not exist on array{name?: mixed, columns?: non-empty-list<mixed>, unique?: bool, primary?: mixed, flags?: mixed, options: array{lengths: non-empty-list<mixed>, where?: mixed}}.
integration-tests / Integration - doctrine/dbal: src/Schema/AbstractSchemaManager.php#L737
Offset 'primary' might not exist on array{name?: mixed, columns?: non-empty-list<mixed>, unique?: bool, primary?: mixed, flags?: mixed, options: array{lengths: non-empty-list<mixed>, where?: mixed}}.
integration-tests / Integration - doctrine/dbal: src/Schema/AbstractSchemaManager.php#L736
Offset 'unique' might not exist on array{name?: mixed, columns?: non-empty-list<mixed>, unique?: bool, primary?: mixed, flags?: mixed, options: array{lengths: non-empty-list<mixed>, where?: mixed}}.
integration-tests / Integration - doctrine/dbal: src/Schema/AbstractSchemaManager.php#L735
Offset 'columns' might not exist on array{name?: mixed, columns?: non-empty-list<mixed>, unique?: bool, primary?: mixed, flags?: mixed, options: array{lengths: non-empty-list<mixed>, where?: mixed}}.
integration-tests / Integration - doctrine/dbal: src/Schema/AbstractSchemaManager.php#L734
Offset 'name' might not exist on array{name?: mixed, columns?: non-empty-list<mixed>, unique?: bool, primary?: mixed, flags?: mixed, options: array{lengths: non-empty-list<mixed>, where?: mixed}}.
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 - doctrine/orm
Process completed with exit code 1.
integration-tests / Integration - doctrine/orm: src/Internal/Hydration/AbstractHydrator.php#L353
Offset 'class' might not exist on array{class?: mixed, args: non-empty-array}.
integration-tests / Integration - doctrine/orm: src/Internal/Hydration/AbstractHydrator.php#L347
Offset 'class' might not exist on array{class?: mixed, args: non-empty-array}.
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#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/Framework/Adapter/Filesystem/Adapter/GoogleStorageFactory.php#L30
Call to deprecated method __construct() of class Google\Cloud\Storage\StorageClient: This option is being deprecated because of a potential security risk. This option does not validate the credential configuration. The security risk occurs when a credential configuration is accepted from a source that is not under your control and used without validation on your side. If you know that you will be loading credential configurations of a specific type, it is recommended to create the credentials directly and configure them using the `credentialsFetcher` option instead. ``` use Google\Auth\Credentials\ServiceAccountCredentials; $credentialsFetcher = new ServiceAccountCredentials($scopes, $json); $creds = new StorageClient(['credentialsFetcher' => $creds]); ``` This will ensure that an unexpected credential type with potential for malicious intent is not loaded unintentionally. You might still have to do validation for certain credential types. If you are loading your credential configuration from an untrusted source and have not mitigated the risks (e.g. by validating the configuration yourself), make these changes as soon as possible to prevent security risks to your environment. Regardless of the method used, it is always your responsibility to validate configurations received from external sources.
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:c88133452612c14db87900daea9e682b469687f48fd36916334406461605a524
baselines-doctrine-dbal-baseline.neon
1 KB
sha256:9455cc63ceba12d923453fd47b0d26189fb85d1b701e4b364b5686bcef5c09fa
baselines-doctrine-orm-baseline.neon
1.77 KB
sha256:b3d6f0cc4785045bb4f8f2d0b633357a355adae9fc072f3982f8691c950b4b17
baselines-shopware-baseline.neon
3.41 KB
sha256:8caf8f30bba9cdc036bfcc1244341cbc10919f742d0f19407cf4180e61efc883
phar-file
3.68 MB
sha256:53a93580bddac00c88ddacee1641432e73c916924f6c6c0f38cf6b93ce1f51ac
phar-file-checksum
3.68 MB
sha256:e00ae315d0fb47b06cff4097b94327f9340c2a83fe9640bc1cc7aa93f418199f