Skip to content

Commit f3c5bb7

Browse files
committed
Confirm test LiveComponentHydrator
1 parent 9a481c4 commit f3c5bb7

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/LiveComponent/tests/Integration/LiveComponentHydratorTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1875,6 +1875,7 @@ public function getTest(LiveComponentMetadataFactory $metadataFactory): Hydratio
18751875
new ComponentMetadata([
18761876
'key' => '__testing',
18771877
'mount' => $reflectionClass->hasMethod('mount') ? ['mount'] : [],
1878+
'service_id' => '__testing_id',
18781879
]),
18791880
$metadataFactory->createPropMetadatas($reflectionClass),
18801881
),

src/TwigComponent/src/ComponentFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ public function mountFromObject(object $component, array $data, ComponentMetadat
9292

9393
$this->mount($component, $data, $componentMetadata);
9494

95-
if (true || !$componentMetadata->isAnonymous()) {
95+
if (!$componentMetadata->isAnonymous()) {
9696
// set data that wasn't set in mount on the component directly
9797
foreach ($data as $property => $value) {
9898
if ($this->propertyAccessor->isWritable($component, $property)) {

0 commit comments

Comments
 (0)