Skip to content

Commit ebe2a21

Browse files
committed
php7.2 compatibility
1 parent 9891a4f commit ebe2a21

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Model/Schema.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ public function getUsedClasses(): array
150150
$usedClasses = $this->usedClasses;
151151

152152
foreach ($this->namespaceTransferDecorators as $decorator) {
153-
array_push($usedClasses, ...$decorator->resolve());
153+
$usedClasses = array_merge($usedClasses, $decorator->resolve());
154154
}
155155

156156
return $usedClasses;

src/PropertyProcessor/Decorator/SchemaNamespaceTransferDecorator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function resolve(): array
4040

4141
if ($this->fetchPropertyImports) {
4242
foreach ($this->schema->getProperties() as $property) {
43-
array_push($usedClasses, ...$this->getUsedClasses($property));
43+
$usedClasses = array_merge($usedClasses, $this->getUsedClasses($property));
4444
}
4545
}
4646

0 commit comments

Comments
 (0)