Skip to content

Commit

Permalink
Removed unused ReflectionProperty#setAccessible() call
Browse files Browse the repository at this point in the history
As per PHP 8.1, this call has no effect anymore.

Ref: vimeo/psalm#8722
Ref: https://wiki.php.net/rfc/make-reflection-setaccessible-no-op
  • Loading branch information
Ocramius committed Dec 19, 2022
1 parent 857ef8b commit 7687d64
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions test/StoragelessTest/Http/SessionMiddlewareTest.php
Expand Up @@ -851,8 +851,6 @@ private function getJwtConfiguration(SessionMiddleware $middleware): Configurati
{
$property = new ReflectionProperty(SessionMiddleware::class, 'config');

$property->setAccessible(true);

$config = $property->getValue($middleware);

assert($config instanceof Configuration);
Expand Down

0 comments on commit 7687d64

Please sign in to comment.