Skip to content

Commit ff1f72e

Browse files
committed
Suppress deprecation warning from Tracy
1 parent 7d605aa commit ff1f72e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/KdybyTests/Autowired/ExtensionTest.phpt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ class ExtensionTest extends Tester\TestCase
2929

3030
Debugger::$logDirectory = TEMP_DIR;
3131
$refl = new \ReflectionProperty('\Nette\Application\UI\Presenter', 'onShutdown');
32-
$file = Debugger::log(new Kdyby\Autowired\MissingServiceException('Missing service blabla', $refl));
32+
// @ to suppress deprecation warning from Tracy on PHP >=8.4, see https://github.com/nette/tracy/pull/587
33+
$file = @Debugger::log(new Kdyby\Autowired\MissingServiceException('Missing service blabla', $refl));
3334

3435
Assert::match('%A%<h2%a?%><a%a% class="tracy-toggle">Autowired</a></h2>%A%', Nette\Utils\FileSystem::read($file));
3536
}

0 commit comments

Comments
 (0)