Skip to content

Commit

Permalink
Fix reflection deprecations in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gsteel committed Jun 13, 2024
1 parent a835f3e commit 828af40
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions test/FactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,10 @@ public function setUp(): void
$r = new ReflectionClass(Barcode\Barcode::class);

$rObjectPlugins = $r->getProperty('objectPlugins');
$rObjectPlugins->setAccessible(true);
$rObjectPlugins->setValue(null);
$rObjectPlugins->setValue($r, null);

$rRendererPlugins = $r->getProperty('rendererPlugins');
$rRendererPlugins->setAccessible(true);
$rRendererPlugins->setValue(null);
$rRendererPlugins->setValue($r, null);
}

public function tearDown(): void
Expand Down

0 comments on commit 828af40

Please sign in to comment.