From b8321d7215205c989fecb0eff3924a8277387c40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mor=C3=A1vek?= Date: Tue, 29 Oct 2024 07:44:16 +0100 Subject: [PATCH] Suppress deprecation warning from Tracy --- tests/KdybyTests/Autowired/ExtensionTest.phpt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/KdybyTests/Autowired/ExtensionTest.phpt b/tests/KdybyTests/Autowired/ExtensionTest.phpt index e1e52b7..434f33f 100644 --- a/tests/KdybyTests/Autowired/ExtensionTest.phpt +++ b/tests/KdybyTests/Autowired/ExtensionTest.phpt @@ -29,7 +29,8 @@ class ExtensionTest extends Tester\TestCase Debugger::$logDirectory = TEMP_DIR; $refl = new \ReflectionProperty('\Nette\Application\UI\Presenter', 'onShutdown'); - $file = Debugger::log(new Kdyby\Autowired\MissingServiceException('Missing service blabla', $refl)); + // @ to suppress deprecation warning from Tracy on PHP >=8.4, see https://github.com/nette/tracy/pull/587 + $file = @Debugger::log(new Kdyby\Autowired\MissingServiceException('Missing service blabla', $refl)); Assert::match('%A%Autowired%A%', Nette\Utils\FileSystem::read($file)); }