Fix phpstan/phpstan#14249: Propagate @phpstan-assert-* annotations to First-class callables (Closures) and string callables #26049
Annotations
10 errors and 1 warning
|
PHPStan:
src/Storefront/Controller/ContextController.php#L126
Offset 'host' might not exist on non-empty-array{scheme?: string, host?: string, port?: int<0, 65535>, user?: string, pass?: string, path?: string, query?: string, fragment?: string}.
|
|
PHPStan:
src/Core/System/Snippet/SnippetService.php#L337
Offset 'language' on array{0: non-falsy-string, locale: non-falsy-string, 1: non-falsy-string, language: non-falsy-string, 2: non-falsy-string, script: non-falsy-string|null, 3: non-falsy-string|null, region: non-falsy-string|null, ...} in empty() always exists and is not falsy.
|
|
PHPStan:
src/Core/System/Snippet/SnippetService.php#L337
Call to function assert() with true will always evaluate to true.
|
|
PHPStan:
src/Core/Installer/Controller/FinishController.php#L72
Offset 'host' might not exist on non-empty-array{scheme?: string, host?: string, port?: int<0, 65535>, user?: string, pass?: string, path?: string, query?: string, fragment?: string}.
|
|
PHPStan:
src/Core/Framework/Feature/FeatureFlagRegistry.php#L89
Casting to bool something that's already *NEVER*.
|
|
PHPStan:
src/Core/Framework/DataAbstractionLayer/Search/Criteria.php#L499
Parameter #1 $ids of class Shopware\Core\Framework\DataAbstractionLayer\Search\Criteria constructor expects array<string>|null, array<array<string>|string> given.
|
|
PHPStan:
src/Core/DevOps/Test/AnnotationTagTester.php#L151
Casting to string something that's already string.
|
|
PHPStan:
src/Core/DevOps/Test/AnnotationTagTester.php#L150
Casting to string something that's already string.
|
|
PHPStan:
src/Core/Checkout/Cart/LineItemFactoryRegistry.php#L99
Parameter #2 $data of method Shopware\Core\Checkout\Cart\LineItemFactoryHandler\LineItemFactoryInterface::update() expects array<string, mixed>, array<int|string, mixed> given.
|
|
PHPStan:
src/Core/Checkout/Cart/LineItemFactoryRegistry.php#L54
Parameter #1 $data of method Shopware\Core\Checkout\Cart\LineItemFactoryHandler\LineItemFactoryInterface::create() expects array<string, mixed>, array<int|string, mixed> given.
|
|
Complete job
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/cache@v4, actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5, actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02, shivammathur/setup-php@44454db4f0199b8b9685a5d763dc37cbf79108e1, step-security/harden-runner@5ef0c079ce82195b2a36a210272d6b661572d83e, Wandalen/wretry.action@v3.8.0_js_action. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
|
Loading