Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
xepozz committed Feb 23, 2024
1 parent 5dac016 commit 0be02f6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/Unit/Reference/TagReferenceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ public function testConstructor(): void
$reflection = new \ReflectionClass(TagReference::class);
$reflectionMethod = $reflection->getConstructor();
$this->assertTrue($reflectionMethod->isPrivate());
if (PHP_VERSION_ID < 81000) {
$reflectionMethod->setAccessible(true);
}

$reflectionMethod->invoke($reflection->newInstanceWithoutConstructor());
}
Expand Down

0 comments on commit 0be02f6

Please sign in to comment.