- Issue created by @dj1999
This is the clone of https://www.drupal.org/project/commerce/issues/3257723 → but it is closed.
On PHP 8.1 during checkout when an inline form is used, the following deprecation is triggered:
Deprecated function: Calling static trait method Drupal\commerce\Element\CommerceElementTrait::shouldExecuteElementSubmit is deprecated, it should only be called on a class using the trait in Drupal\commerce\Element\CommerceElementTrait::validateElementSubmit() (line 65 of modules/contrib/commerce/src/Element/CommerceElementTrait.php).
This needs fix in CommerceElementTrait because 2 static public methods call 2 private static methods which is deprecated in php 8.1