Fix "array_rand() - offset might not exists" #22114
phar.yml
on: pull_request
Compiler Tests
1m 42s
Commit PHAR
Matrix: integration-tests / integration-run-phpstan
integration-tests
/
PMMP Tests
1m 19s
Matrix: integration-tests / integration-tests
Checksum PHAR
PHAR Prefix Diff
Matrix: extension-tests / tests-extensions
Matrix: other-tests / Other Tests
integration-tests
/
Integration - Update baselines
0s
Annotations
42 errors
|
other-tests / Other Tests (ubuntu-latest, 7.4, cd e2e
git clone https://github.com/nikic/PHP-Parser.git
cd PHP-...
Process completed with exit code 1.
|
|
|
|
|
|
|
|
|
|
other-tests / Other Tests (ubuntu-latest, 7.4, cd e2e
git clone https://github.com/nikic/PHP-Parser.git
cd PHP-...:
lib/PhpParser/Lexer.php#L89
Undefined variable: $undefinedVariable
|
|
other-tests / Other Tests (ubuntu-latest, 7.4, cd e2e
git clone https://github.com/nikic/PHP-Parser.git
cd PHP-...:
lib/PhpParser/BuilderAbstract.php#L173
Access to an undefined property PhpParser\BuilderAbstract::$flags.
|
|
other-tests / Other Tests (ubuntu-latest, 7.4, cd e2e
git clone https://github.com/nikic/PHP-Parser.git
cd PHP-...:
lib/PhpParser/BuilderAbstract.php#L172
Access to an undefined property PhpParser\BuilderAbstract::$flags.
|
|
extension-tests / phpstan-mockery (8.5) make tests
Process completed with exit code 2.
|
|
other-tests / Other Tests (ubuntu-latest, 8.0, cd e2e
git clone https://github.com/nikic/PHP-Parser.git
cd PHP-...
Process completed with exit code 1.
|
|
|
|
|
|
|
|
|
|
other-tests / Other Tests (ubuntu-latest, 8.0, cd e2e
git clone https://github.com/nikic/PHP-Parser.git
cd PHP-...:
lib/PhpParser/Lexer.php#L89
Undefined variable: $undefinedVariable
|
|
other-tests / Other Tests (ubuntu-latest, 8.0, cd e2e
git clone https://github.com/nikic/PHP-Parser.git
cd PHP-...:
lib/PhpParser/BuilderAbstract.php#L173
Access to an undefined property PhpParser\BuilderAbstract::$flags.
|
|
other-tests / Other Tests (ubuntu-latest, 8.0, cd e2e
git clone https://github.com/nikic/PHP-Parser.git
cd PHP-...:
lib/PhpParser/BuilderAbstract.php#L172
Access to an undefined property PhpParser\BuilderAbstract::$flags.
|
|
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 - bladestan/bladestan
Process completed with exit code 1.
|
|
integration-tests / Integration - bladestan/bladestan:
src/TemplateCompiler/Rules/TemplateRulesRegistry.php#L63
Possibly invalid array key type mixed.
|
|
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/System/SalesChannel/Validation/SalesChannelValidator.php#L154
Parameter &$mapping by-ref type of method Shopware\Core\System\SalesChannel\Validation\SalesChannelValidator::handleSalesChannelLanguageMapping() expects array<string, array{current_default: string, new_default: string, inserts: list<string>, updateId: string, deletions: list<string>, state: list<string>}>, non-empty-array<string, array{current_default: string, new_default: string, inserts: list<string>, updateId: string, deletions: list<string>, state: array{}}|array{state: array{}, inserts?: non-empty-list<string>}> given.
|
|
integration-tests / Integration - shopware/shopware:
src/Core/System/SalesChannel/Validation/SalesChannelValidator.php#L148
Parameter &$mapping by-ref type of method Shopware\Core\System\SalesChannel\Validation\SalesChannelValidator::handleSalesChannelLanguageMapping() expects array<string, array{current_default: string, new_default: string, inserts: list<string>, updateId: string, deletions: list<string>, state: list<string>}>, non-empty-array<string, array{current_default: string, new_default: string, inserts: list<string>, updateId: string, deletions: list<string>, state: array{}}|array{state: array{}, deletions?: non-empty-list<string>}> given.
|
|
integration-tests / Integration - shopware/shopware:
src/Core/System/SalesChannel/Validation/SalesChannelValidator.php#L127
Parameter &$mapping by-ref type of method Shopware\Core\System\SalesChannel\Validation\SalesChannelValidator::handleSalesChannelMapping() expects array<string, array{current_default: string, new_default: string, inserts: list<string>, updateId: string, deletions: list<string>, state: list<string>}>, non-empty-array<string, array{current_default: string, new_default: non-falsy-string, inserts: array{}, updateId: string, deletions: list<string>, state: list<string>}|array{new_default: non-falsy-string, inserts: array{}, state?: array{}}> given.
|
|
integration-tests / Integration - shopware/shopware:
src/Core/System/SalesChannel/Validation/SalesChannelValidator.php#L126
Parameter &$mapping by-ref type of method Shopware\Core\System\SalesChannel\Validation\SalesChannelValidator::handleSalesChannelMapping() expects array<string, array{current_default: string, new_default: string, inserts: list<string>, updateId: string, deletions: list<string>, state: list<string>}>, non-empty-array<string, array{current_default: string, new_default: non-falsy-string, inserts: list<string>, updateId: string, deletions: list<string>, state: list<string>}|array{new_default: non-falsy-string, inserts?: array{}}> given.
|
|
integration-tests / Integration - shopware/shopware:
src/Core/Profiling/Doctrine/ConnectionProfiler.php#L166
Method Shopware\Core\Profiling\Doctrine\ConnectionProfiler::getGroupedQueries() should return 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, ...}>> but returns array<string, list<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<1, max>, ...}>>.
|
|
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/Framework/Migration/MakeVersionableMigrationHelper.php#L218
Method Shopware\Core\Framework\Migration\MakeVersionableMigrationHelper::mapHydrateForeignKeyData() should return array<string, array{TABLE_NAME: string, COLUMN_NAME: list<string>, REFERENCED_TABLE_NAME: string, REFERENCED_COLUMN_NAME: list<string>}> but returns array<string, array<'COLUMN_NAME'|'REFERENCED_COLUMN…'|'REFERENCED_TABLE…'|'TABLE_NAME', non-empty-list<string>|string>>.
|
|
integration-tests / Integration - shopware/shopware:
src/Core/Framework/Migration/MakeVersionableMigrationHelper.php#L215
Cannot assign new offset to list<string>|string.
|
|
integration-tests / Integration - shopware/shopware:
src/Core/Framework/Migration/MakeVersionableMigrationHelper.php#L214
Cannot assign new offset to list<string>|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.
|
Artifacts
Produced during runtime
| Name | Size | Digest | |
|---|---|---|---|
|
baselines-bladestan-baseline.neon
|
572 Bytes |
sha256:170f15acc3630329a4c0ed058b5fa36a4576d99ed5d9066cbaa49fb66abd8495
|
|
|
baselines-doctrine-dbal-baseline.neon
|
834 Bytes |
sha256:9594845b30387480b49c7038b50bc87c62feefbd1399db62c1ac8dcfaf544d5b
|
|
|
baselines-doctrine-orm-baseline.neon
|
1.77 KB |
sha256:9c309873a1206ea1c2b70a1272b985ebf72089b3f98c9b68ec8a78d42c934062
|
|
|
baselines-shopware-baseline.neon
|
3.18 KB |
sha256:574e48551c5bda270f0ceeac8b331d9f2c5e7ff944ce6b6e796655e74ef6ae7d
|
|
|
phar-file
|
3.68 MB |
sha256:751dac4b56501e042b24db49d51e38da9855a0f30d56b3828d01c2bdf12e1a9c
|
|
|
phar-file-checksum
|
3.68 MB |
sha256:58d1bdfaf53c7835a8cf0170442f39f382adc260807efe1e2c72412279134e39
|
|