Skip to content

Commit

Permalink
Suppress deprecation warning from Tracy
Browse files Browse the repository at this point in the history
  • Loading branch information
xificurk committed Oct 29, 2024
1 parent 7d605aa commit ff1f72e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/KdybyTests/Autowired/ExtensionTest.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -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%<h2%a?%><a%a% class="tracy-toggle">Autowired</a></h2>%A%', Nette\Utils\FileSystem::read($file));
}
Expand Down

0 comments on commit ff1f72e

Please sign in to comment.