Skip to content

Commit aaab4be

Browse files
committed
fix(ObjectToObjectMetadataFactory): Remove remnants.
1 parent ff706bc commit aaab4be

File tree

3 files changed

+10
-14
lines changed

3 files changed

+10
-14
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# CHANGELOG
22

3+
## 0.6.5
4+
5+
* fix(`ObjectToObjectMetadataFactory`): Remove remnants.
6+
37
## 0.6.4
48

59
* fix: Hide toolbar icon if no mappings are recorded.

src/Transformer/ObjectToObjectMetadata/Implementation/ObjectToObjectMetadataFactory.php

-8
Original file line numberDiff line numberDiff line change
@@ -82,14 +82,6 @@ public function createObjectToObjectMetadata(
8282
throw new InternalClassUnsupportedException($targetClass, context: $context);
8383
}
8484

85-
// instantiate ObjectToObjectMetadata
86-
87-
$objectToObjectMetadata = new ObjectToObjectMetadata(
88-
sourceClass: $sourceClass,
89-
targetClass: $targetClass,
90-
providedTargetClass: $providedTargetClass
91-
);
92-
9385
// queries
9486

9587
$initializableTargetProperties = $this

src/Transformer/ObjectToObjectMetadata/ObjectToObjectMetadata.php

+6-6
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@ public function __construct(
2929
private string $sourceClass,
3030
private string $targetClass,
3131
private string $providedTargetClass,
32-
private array $propertyMappings = [],
33-
private bool $instantiable = true,
34-
private bool $cloneable = true,
35-
private array $initializableTargetPropertiesNotInSource = [],
36-
private int $sourceModifiedTime = 0,
37-
private int $targetModifiedTime = 0,
32+
private array $propertyMappings,
33+
private bool $instantiable,
34+
private bool $cloneable,
35+
private array $initializableTargetPropertiesNotInSource,
36+
private int $sourceModifiedTime,
37+
private int $targetModifiedTime,
3838
) {
3939
}
4040

0 commit comments

Comments
 (0)