Skip to content

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

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

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

Triggered via pull request October 2, 2025 07:52
Status Failure
Total duration 11m 8s
Artifacts 6

phar.yml

on: pull_request
integration-tests  /  Check PHAR checksum
4s
integration-tests / Check PHAR checksum
Download base SHA PHAR
Download base SHA PHAR
extension-tests  /  Check PHAR checksum
4s
extension-tests / Check PHAR checksum
other-tests  /  Check PHAR checksum
7s
other-tests / Check PHAR checksum
Commit PHAR
0s
Commit PHAR
Matrix: integration-tests / integration-run-phpstan
integration-tests  /  PMMP Tests
1m 20s
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 - 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 - 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/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:27029b750d984e203126f9aa98cf9a61a631182025c4d34194301d9c5c7ec00d
baselines-doctrine-dbal-baseline.neon
1 KB
sha256:327e771a68795feb2af7daafbcbff8e8bc2427aedbfeecf699f10df91b4f68f3
baselines-doctrine-orm-baseline.neon
1.77 KB
sha256:a531f65be359d9a7002837a1e4a65a06758f87768061c7db31ec87d92ba63040
baselines-shopware-baseline.neon
3.41 KB
sha256:7b634b56e43ba2643f5b97181c8e99c335b6312461155afa6e1dda9844e8ebac
phar-file
3.68 MB
sha256:bf75b9be305b491dac20e20c5bbe636817af37ea3b0b2cd36600435ceed858c4
phar-file-checksum
3.68 MB
sha256:a01a5cd5329c852597540389b0d026416a6fa2482bfb982f758b113aae9b18c1