We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d829782 commit 8a7c438Copy full SHA for 8a7c438
src/MatchesSnapshots.php
@@ -297,7 +297,6 @@ protected function rethrowExpectationFailedExceptionWithUpdateSnapshotsPrompt($e
297
$exceptionReflection = new ReflectionObject($exception);
298
299
$messageReflection = $exceptionReflection->getProperty('message');
300
- $messageReflection->setAccessible(true);
301
$messageReflection->setValue($exception, $newMessage);
302
303
throw $exception;
0 commit comments