Skip to content

Commit 318568b

Browse files
committed
[BUGFIX] prevent PHP Warning: Undefined array key "provider"
1 parent 3cd646a commit 318568b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Classes/Domain/Model/Cart/Service.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,17 +71,17 @@ public function getCart(): Cart
7171

7272
public function getStatus(): string
7373
{
74-
return $this->config['status'] ?: 'open';
74+
return $this->config['status'] ?? 'open';
7575
}
7676

7777
public function getProcessOrderCreateEvent(): string
7878
{
79-
return $this->config['processOrderCreateEvent'] ?: '';
79+
return $this->config['processOrderCreateEvent'] ?? '';
8080
}
8181

8282
public function getProvider(): string
8383
{
84-
return $this->config['provider'] ?: '';
84+
return $this->config['provider'] ?? '';
8585
}
8686

8787
public function getName(): string

0 commit comments

Comments
 (0)