diff --git a/src/MatchesSnapshots.php b/src/MatchesSnapshots.php index 2127f1e..581ec4d 100644 --- a/src/MatchesSnapshots.php +++ b/src/MatchesSnapshots.php @@ -297,7 +297,6 @@ protected function rethrowExpectationFailedExceptionWithUpdateSnapshotsPrompt($e $exceptionReflection = new ReflectionObject($exception); $messageReflection = $exceptionReflection->getProperty('message'); - $messageReflection->setAccessible(true); $messageReflection->setValue($exception, $newMessage); throw $exception;