Problem/Motivation
While using this module I recieved
Deprecated function: Drupal\commerce_custom_checkout_message\Plugin\Commerce\CheckoutPane\CustomCheckoutMessage::create(): Implicitly marking parameter $checkout_flow as nullable is deprecated, the explicit nullable type must be used instead in include() (line 576 of /app/vendor/composer/ClassLoader.php).
Steps to reproduce
Navigate to /admin/commerce/config/checkout-flows/manage/default
move Custom checkout message pane to a workflow state from disabled
click save
observe the message.
Proposed resolution
Add ? to places it's required throughout the module.
Remaining tasks
User interface changes
API changes
Data model changes
Comments
Comment #2
generalredneckRan phpcs to find all the instances..
FILE: ...stom_checkout_message/src/Plugin/Commerce/CheckoutPane/CustomCheckoutMessage.php -------------------------------------------------------------------------------------- FOUND 1 ERROR AFFECTING 1 LINE -------------------------------------------------------------------------------------- 58 | ERROR | [x] Parameter $checkout_flow has null default value, but is not marked | | as nullable. -------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY -------------------------------------------------------------------------------------- Time: 161ms; Memory: 10MBComment #4
generalredneckphpcs now runs with the output
Comment #5
dhruv.mittal commentedReviewing it
Comment #6
dhruv.mittal commentedChanges looks good to me and as There are no deprecation warning, so moving it to RTBC !!