Skip to content

Commit f7f7e9e

Browse files
authored
Add default values to array_merge (#1184)
1 parent 1a81370 commit f7f7e9e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Generator.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ public function __construct(
5454
// Find the drivers to add to the extra/interfaces
5555
$this->detectDrivers();
5656

57-
$this->extra = array_merge($this->extra, $this->config->get('ide-helper.extra'));
58-
$this->magic = array_merge($this->magic, $this->config->get('ide-helper.magic'));
59-
$this->interfaces = array_merge($this->interfaces, $this->config->get('ide-helper.interfaces'));
57+
$this->extra = array_merge($this->extra, $this->config->get('ide-helper.extra'), []);
58+
$this->magic = array_merge($this->magic, $this->config->get('ide-helper.magic'), []);
59+
$this->interfaces = array_merge($this->interfaces, $this->config->get('ide-helper.interfaces'), []);
6060
// Make all interface classes absolute
6161
foreach ($this->interfaces as &$interface) {
6262
$interface = '\\' . ltrim($interface, '\\');

0 commit comments

Comments
 (0)