reverted: --- b/advanced_page_cache.info.yml +++ a/advanced_page_cache.info.yml @@ -1,7 +1,7 @@ name: Advanced Internal Page Cache description: 'Allows to extend the caching of pages for anonymous users.' type: module +core_version_requirement: ^9 || ^10 -core_version_requirement: ^9 || ^10 || ^11 package: 'Performance and scalability' dependencies: - drupal:page_cache reverted: --- b/composer.json +++ a/composer.json @@ -16,6 +16,6 @@ "source": "https://git.drupalcode.org/project/advanced_page_cache" }, "require": { + "drupal/core": "^9 || ^10" - "drupal/core": "^9 || ^10 || ^11" } } only in patch2: unchanged: --- a/tests/modules/src/Form/TestForm.php +++ b/tests/modules/src/Form/TestForm.php @@ -40,7 +40,7 @@ class TestForm extends FormBase { */ public function submitForm(array &$form, FormStateInterface $form_state) { $response = new LocalRedirectResponse($this->getRequest()->query->get('destination')); - $response->headers->setCookie(new Cookie($form['cookie']['#value'], TRUE, 0, '/', NULL, FALSE, FALSE)); + $response->headers->setCookie(\Symfony\Component\HttpFoundation\Cookie::create($form['cookie']['#value'], TRUE, 0, '/', NULL, FALSE, FALSE)); } } \ No newline at end of file only in patch2: unchanged: --- a/tests/src/Functional/CookiePageCacheTest.php +++ b/tests/src/Functional/CookiePageCacheTest.php @@ -18,12 +18,22 @@ use Drupal\user\RoleInterface; */ class CookiePageCacheTest extends BrowserTestBase { + /** + * {@inheritdoc} + */ + protected $defaultTheme = 'stark'; + + /** + * {@inheritdoc} + */ + protected $defaultTheme = 'stark'; + use AssertPageCacheContextsAndTagsTrait; /** * {@inheritdoc} */ - protected function setUp() { + protected function setUp(): void { parent::setUp(); }