Verified Commit c7521c33 authored by Lee Rowlands's avatar Lee Rowlands
Browse files

Issue #3521612 by nicxvan, dww, donquixote: Use ? type shortcut instead of...

Issue #3521612 by nicxvan, dww, donquixote: Use ? type shortcut instead of |null for order param on Hook attribute
parent fbb6a0f9
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -135,7 +135,7 @@ public function __construct(
    public string $hook = '',
    public string $method = '',
    public ?string $module = NULL,
    public OrderInterface|null $order = NULL,
    public ?OrderInterface $order = NULL,
  ) {
    $this->hook = implode('_', array_filter([static::PREFIX, $hook, static::SUFFIX]));
    if ($this->hook === '') {