Skip to content

Commit

Permalink
Use require instead of require_once in FunctionalTest
Browse files Browse the repository at this point in the history
  • Loading branch information
vudaltsov committed Oct 2, 2024
1 parent 087d6f6 commit c6428ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/FunctionalTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public function test(string $file): void
{
self::$reflector ??= TyphoonReflector::build();
/** @psalm-suppress UnresolvableInclude */
$test = require_once $file;
$test = require $file;
\assert($test instanceof \Closure);

$test(self::$reflector, $this);
Expand Down

0 comments on commit c6428ac

Please sign in to comment.