Order::getPlacedTime() should cast the return value to an int

Created on 16 July 2025, 14 days ago

Describe your bug or feature request.

  /**
   * Gets the order placed timestamp.
   *
   * @return int
   *   The order placed timestamp.
   */
  public function getPlacedTime();
drush ev "var_dump(\Drupal\commerce_order\Entity\Order::load(120)->getPlacedTime())"
string(10) "1752501150"

Also, currently when an order isn't placed, NULL can be returned, so we should fix the return type.

📌 Task
Status

Active

Version

3.0

Component

Order

Created by

🇮🇱Israel jsacksick

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024