From 41884cd8c1ecf99df84986dd5e83d1da8a46893c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Vo=C5=99=C3=AD=C5=A1ek?= Date: Wed, 27 Mar 2024 19:37:25 +0100 Subject: [PATCH] Make "__atk_tab" GET param non-sticky (#2191) --- src/App.php | 1 - tests/DemosTest.php | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/App.php b/src/App.php index 7219f646db..17ca38a28c 100644 --- a/src/App.php +++ b/src/App.php @@ -135,7 +135,6 @@ class App /** @var array global sticky arguments */ protected array $stickyGetArguments = [ '__atk_json' => false, - '__atk_tab' => false, ]; /** @var class-string */ diff --git a/tests/DemosTest.php b/tests/DemosTest.php index 6f9369ec8e..6e62b71e55 100644 --- a/tests/DemosTest.php +++ b/tests/DemosTest.php @@ -153,7 +153,7 @@ protected function assertNoGlobalSticky(App $app): void { $appSticky = array_diff_assoc( \Closure::bind(static fn () => $app->stickyGetArguments, null, App::class)(), - ['__atk_json' => false, '__atk_tab' => false, 'APP_CALL_EXIT' => true, 'APP_CATCH_EXCEPTIONS' => true] + ['__atk_json' => false, 'APP_CALL_EXIT' => true, 'APP_CATCH_EXCEPTIONS' => true] ); if ($appSticky !== []) { throw (new Exception('Global GET sticky must never be set by any component'))