Skip to content

Commit 8a7c438

Browse files
committed
remove ReflectionProperty::setAccessible
1 parent d829782 commit 8a7c438

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/MatchesSnapshots.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,6 @@ protected function rethrowExpectationFailedExceptionWithUpdateSnapshotsPrompt($e
297297
$exceptionReflection = new ReflectionObject($exception);
298298

299299
$messageReflection = $exceptionReflection->getProperty('message');
300-
$messageReflection->setAccessible(true);
301300
$messageReflection->setValue($exception, $newMessage);
302301

303302
throw $exception;

0 commit comments

Comments
 (0)