Skip to content

Fix "array_rand() - offset might not exists" #22134

Fix "array_rand() - offset might not exists"

Fix "array_rand() - offset might not exists" #22134

Triggered via pull request October 2, 2025 15:10
@staabmstaabm
synchronize #4383
staabm:rand
Status Failure
Total duration 11m 39s
Artifacts 5

phar.yml

on: pull_request
integration-tests  /  Check PHAR checksum
6s
integration-tests / Check PHAR checksum
Download base SHA PHAR
Download base SHA PHAR
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
Matrix: integration-tests / integration-run-phpstan
integration-tests  /  PMMP Tests
1m 20s
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

27 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/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>.
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/Profiling/Doctrine/ConnectionProfiler.php#L162
Property Shopware\Core\Profiling\Doctrine\ConnectionProfiler::$groupedQueries (array<string, array<int, array{sql: string, executionMS: float, types: array<int|string, Doctrine\DBAL\ParameterType|int>, params: Symfony\Component\VarDumper\Cloner\Data, runnable: bool, explainable: bool, backtrace?: array<array{function?: string, line: int, file: string, class?: string, object?: object, type: string}>, count: int, ...}>>|null) does not accept non-empty-array<string, array<int, array{executionPercent: float}|array{sql: string, executionMS: float, types: array<int|string, Doctrine\DBAL\ParameterType|int>, params: Symfony\Component\VarDumper\Cloner\Data, runnable: bool, explainable: bool, backtrace?: array<array{function?: string, line: int, file: string, class?: string, object?: object, type: string}>, count: int, ...}>>.
integration-tests / Integration - shopware/shopware: src/Core/Migration/V6_3/Migration1582011195FixCountryStateGermanTranslation.php#L99
Offset mixed might not exist on array{DE-BW: 'Baden-Württemberg', DE-BY: 'Bayern', DE-BE: 'Berlin', DE-BB: 'Brandenburg', DE-HB: 'Bremen', DE-HH: 'Hamburg', DE-HE: 'Hessen', DE-NI: 'Niedersachsen', ...}.
integration-tests / Integration - shopware/shopware: src/Core/Migration/V6_3/Migration1582011195FixCountryStateGermanTranslation.php#L93
Offset mixed might not exist on array{DE-BW: 'Baden-Württemberg', DE-BY: 'Bavaria', DE-BE: 'Berlin', DE-BB: 'Brandenburg', DE-HB: 'Bremen', DE-HH: 'Hamburg', DE-HE: 'Hesse', DE-NI: 'Lower Saxony', ...}.
integration-tests / Integration - shopware/shopware: src/Core/Installer/Controller/ShopConfigurationController.php#L112
Offset mixed might not exist on array<string, array{id: string, label: string}>.
integration-tests / Integration - shopware/shopware: src/Core/Installer/Controller/ShopConfigurationController.php#L66
Offset mixed might not exist on array<string, array{id: string, label: string}>.
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>.

Artifacts

Produced during runtime
Name Size Digest
baselines-bladestan-baseline.neon
572 Bytes
sha256:1a83049de864920032be039ba2f1c0dee1fee41415952821430758b00841ef01
baselines-doctrine-orm-baseline.neon
1.96 KB
sha256:7cf8afa19ec17bb21ec2e443c7eb6b245c7576a38c131b693d4c8ce9282a119c
baselines-shopware-baseline.neon
3.75 KB
sha256:e19bbee0918dea89e2009e1c41eaad69ab145f6b9c76a2a411478088f537920a
phar-file
3.68 MB
sha256:fc63093964c8244a8ab40581fc52ac51a233ea2613ba810b18a63cac145592b4
phar-file-checksum
3.68 MB
sha256:ace77a387413332d28a4ea8ee6222f6344a7f89c5ed1771f040c2e075c9bf4ca