From c5a6c56d4be3ec6eefad03fca1bcb17be2833965 Mon Sep 17 00:00:00 2001 From: Adam Daley Date: Sun, 28 Jun 2026 09:56:01 +0100 Subject: [PATCH] Fix for 1 code quality finding in Twig tests (#3855) Apply suggested fix to tests/Unit/FOSSBilling/Twig/StrictVariablesTest.php from Copilot Autofix Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com> --- tests/Unit/FOSSBilling/Twig/StrictVariablesTest.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/Unit/FOSSBilling/Twig/StrictVariablesTest.php b/tests/Unit/FOSSBilling/Twig/StrictVariablesTest.php index b58cc58bc..0de0cbe11 100644 --- a/tests/Unit/FOSSBilling/Twig/StrictVariablesTest.php +++ b/tests/Unit/FOSSBilling/Twig/StrictVariablesTest.php @@ -55,6 +55,9 @@ test('all templates render under strict_variables', function (): void { // such finding fails the test. Test-infra findings are informational // only and never fail the test. expect($realBugs)->toBeEmpty("New strict-variables findings detected:\n" . formatFindings($realBugs)); + } else { + // No baseline: still assert so failures are never silent. + expect($realBugs)->toBeEmpty("Strict-variables real-bug findings detected (no baseline present):\n" . formatFindings($realBugs)); } });