Skip to content

Commit

Permalink
Fix lingering }
Browse files Browse the repository at this point in the history
Remove remaining } in toMatchObject.
  • Loading branch information
drsdre authored Feb 25, 2025
1 parent 1ad30a9 commit 0bdaef2
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/Mixins/Expectation.php
Original file line number Diff line number Diff line change
Expand Up @@ -815,11 +815,10 @@ public function toMatchObject(iterable $object, string $message = ''): self
$propertyValue = $this->value->{$property};

$second_message = $message !== '' ? $message : sprintf(
'Failed asserting that an object has a property %s with the value %s.',
$this->export($property),
$this->export($propertyValue),
);
}
'Failed asserting that an object has a property %s with the value %s.',
$this->export($property),
$this->export($propertyValue),
);

Assert::assertEquals($value, $propertyValue, $second_message);
}
Expand Down

0 comments on commit 0bdaef2

Please sign in to comment.