Skip to content

Commit

Permalink
Confirm test LiveComponentHydrator
Browse files Browse the repository at this point in the history
  • Loading branch information
smnandre committed Nov 11, 2024
1 parent 9a481c4 commit f3c5bb7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1875,6 +1875,7 @@ public function getTest(LiveComponentMetadataFactory $metadataFactory): Hydratio
new ComponentMetadata([
'key' => '__testing',
'mount' => $reflectionClass->hasMethod('mount') ? ['mount'] : [],
'service_id' => '__testing_id',
]),
$metadataFactory->createPropMetadatas($reflectionClass),
),
Expand Down
2 changes: 1 addition & 1 deletion src/TwigComponent/src/ComponentFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public function mountFromObject(object $component, array $data, ComponentMetadat

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

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

0 comments on commit f3c5bb7

Please sign in to comment.