Skip to content

Commit dc4e14e

Browse files
authored
Merge pull request #230 from Mika-/fix-deprecation
remove ReflectionProperty::setAccessible
2 parents d829782 + 8a7c438 commit dc4e14e

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)