Skip to content

Commit b1b6a07

Browse files
committed
Removed deprecated Method ReflectionMethod::setAccessible()
1 parent f9b797b commit b1b6a07

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

packages/framework/tests/Cache/TaggableFileDriverTest.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ public function testPathGeneratesCorrectPathForKeyWithoutSeparator(): void
5454
$reflectionMethod = new \ReflectionMethod(TaggableFileStore::class, 'path');
5555

5656
$store = new TaggableFileStore($this->file, $this->path);
57-
$reflectionMethod->setAccessible(true);
5857
$path = $reflectionMethod->invoke($store, 'foobar');
5958

6059
$this->assertTrue(Str::contains($path, $this->path));
@@ -66,7 +65,6 @@ public function testPathGeneratesCorrectPathForKeyWithSeparator(): void
6665
$reflectionMethod = new \ReflectionMethod(TaggableFileStore::class, 'path');
6766

6867
$store = new TaggableFileStore($this->file, $this->path);
69-
$reflectionMethod->setAccessible(true);
7068
$path = $reflectionMethod->invoke($store, 'boofar~#~foobar');
7169

7270
$this->assertTrue(Str::contains($path, $this->path));
@@ -78,7 +76,6 @@ public function testPathGeneratesCorrectPathForKeyWithCustomSeparator(): void
7876
$reflectionMethod = new \ReflectionMethod(TaggableFileStore::class, 'path');
7977

8078
$store = new TaggableFileStore($this->file, $this->path, '~|~');
81-
$reflectionMethod->setAccessible(true);
8279
$path = $reflectionMethod->invoke($store, 'boofar~|~foobar');
8380

8481
$this->assertTrue(Str::contains($path, $this->path));

0 commit comments

Comments
 (0)