Fixed
Project:
Commerce Core
Version:
3.x-dev
Component:
Tests
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
6 Nov 2026 at 12:22 UTC
Updated:
6 Nov 2026 at 12:37 UTC
Jump to comment: Most recent
#3611317 fixed PHPStan for the current major, but the phpstan (previous major) job (Drupal 10) still fails:
EntityListBuilder::getDefaultOperations() invoked with 2 parameters, 1 required in OrderListBuilder, ProductListBuilder, ProductVariationListBuilder, CouponListBuilder, PromotionListBuilder and StoreListBuilder. The CacheableMetadata argument only exists since Drupal 11.3, and the existing ignore only covered ConfigEntityListBuilder in NumberPatternListBuilder.Drupal\Core\DefaultContent\Exporter and Drupal\Core\DefaultContent\PreExportEvent not found (DefaultContentEventSubscriber, ProductVariationExportTest).Drupal\Core\Field\FieldPurger not found in UninstallTest, and the inline @phpstan-ignore function.deprecated is reported as unmatched, since field_purge_batch() isn't deprecated on Drupal 10.Add phpstan.neon ignores with reportUnmatched: false so both the current and previous major pass:
getDefaultOperations() ignore cover both EntityListBuilder and ConfigEntityListBuilder, without restricting the path.DefaultContent classes in the two affected files.UninstallTest ignore from the inline comment to phpstan.neon.Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #4
jsacksick commented