Skip to content

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

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

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

Triggered via pull request October 2, 2025 13:56
Status Failure
Total duration 11m 7s
Artifacts 6

phar.yml

on: pull_request
integration-tests  /  Check PHAR checksum
4s
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 18s
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

34 errors
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/Query/SqlWalker.php#L1111
Offset mixed might not exist on array<string, array{metadata?: Doctrine\ORM\Mapping\ClassMetadata<object>, parent?: string|null, relation?: Doctrine\ORM\Mapping\AssociationMapping|null, map?: string|null, resultVariable?: Doctrine\ORM\Query\AST\Node|string, nestingLevel: int, token: Doctrine\Common\Lexer\Token<Doctrine\ORM\Query\TokenType, string>}>.
integration-tests / Integration - doctrine/orm: src/Persisters/Entity/JoinedSubclassPersister.php#L506
Offset mixed might not exist on array<string, Doctrine\ORM\Mapping\FieldMapping>.
integration-tests / Integration - doctrine/orm: src/Persisters/Entity/BasicEntityPersister.php#L291
Offset mixed might not exist on array<string, Doctrine\ORM\Mapping\FieldMapping>.
integration-tests / Integration - doctrine/orm: src/Persisters/Collection/ManyToManyPersister.php#L691
Offset mixed might not exist on array<string, string>.
integration-tests / Integration - doctrine/orm: src/Persisters/Collection/ManyToManyPersister.php#L622
Offset mixed might not exist on array<string, string>.
integration-tests / Integration - doctrine/orm: src/Persisters/Collection/ManyToManyPersister.php#L546
Offset mixed might not exist on array<string, string>.
extension-tests / phpstan-mockery (8.5) make tests
Process completed with exit code 2.
integration-tests / Integration - doctrine/orm: src/Persisters/Collection/ManyToManyPersister.php#L541
Offset mixed might not exist on array<string, string>.
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#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/DataAbstractionLayer/Dbal/EntityReader.php#L666
Offset mixed might not exist on array<string, array<string>>.
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/ImportExport/Command/ImportEntityCommand.php#L199
Offset mixed might not exist on array<string, Shopware\Core\Content\ImportExport\ImportExportProfileEntity>.
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:31886c822dfaf3941e830c50ed40658266339f2de551b8c5805c51823c532824
baselines-doctrine-dbal-baseline.neon
1 KB
sha256:5f7af0fe28c5d8595eedc33cf840182a19a6577d91e7d5a187b2259934290261
baselines-doctrine-orm-baseline.neon
1.96 KB
sha256:a3daac168c171e58a07d57ce809dfa59c89a2685abddfcee391ca47ef55fe225
baselines-shopware-baseline.neon
4.11 KB
sha256:05dcc58e88331071a65177b562fd30761d8ac507812a0c8e42e59c2de819c5f7
phar-file
3.68 MB
sha256:3e8182f6f9fbe331b9ca6e0e699bab2d693f31dc3b653f89fc5089caa114edc9
phar-file-checksum
3.68 MB
sha256:a81bc096aa86540077acae9c15377d96184694c1461b249633af97812b389737