From 0bdaef29e97fbc450ffee1308b1fd4d0665ec570 Mon Sep 17 00:00:00 2001 From: AFS Date: Tue, 25 Feb 2025 15:41:17 +0100 Subject: [PATCH] Fix lingering } Remove remaining } in toMatchObject. --- src/Mixins/Expectation.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/Mixins/Expectation.php b/src/Mixins/Expectation.php index 3a20c672..e3393396 100644 --- a/src/Mixins/Expectation.php +++ b/src/Mixins/Expectation.php @@ -815,11 +815,10 @@ final class Expectation $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); }