diff --git a/feed_block.info.yml b/feed_block.info.yml index 69d91ef..8f6476f 100644 --- a/feed_block.info.yml +++ b/feed_block.info.yml @@ -8,5 +8,4 @@ dependencies: - drupal:block_content - drupal:node - drupal:link -core: '8.x' -core_version_requirement: ^8 || ^9 +core_version_requirement: ^8 || ^9 || ^10 diff --git a/src/EventSubscriber/FeedBlockCacheExpire.php b/src/EventSubscriber/FeedBlockCacheExpire.php index cf6db3f..0e08696 100644 --- a/src/EventSubscriber/FeedBlockCacheExpire.php +++ b/src/EventSubscriber/FeedBlockCacheExpire.php @@ -2,6 +2,7 @@ namespace Drupal\feed_block\EventSubscriber; +use Symfony\Component\HttpKernel\Event\ResponseEvent; use Drupal\Core\Cache\CacheableResponseInterface; use Drupal\Core\Cache\Context\CacheContextsManager; use Drupal\Core\Config\ConfigFactoryInterface; @@ -9,7 +10,6 @@ use Drupal\Core\Language\LanguageManagerInterface; use Drupal\Core\PageCache\RequestPolicyInterface; use Drupal\Core\PageCache\ResponsePolicyInterface; use Symfony\Component\HttpFoundation\Response; -use Symfony\Component\HttpKernel\Event\FilterResponseEvent; use Symfony\Component\HttpKernel\KernelEvents; use Symfony\Component\EventDispatcher\EventSubscriberInterface; @@ -90,10 +90,10 @@ class FeedBlockCacheExpire implements EventSubscriberInterface { /** * Sets extra headers on successful responses. * - * @param \Symfony\Component\HttpKernel\Event\FilterResponseEvent $event + * @param \Symfony\Component\HttpKernel\Event\ResponseEvent $event * The event to process. */ - public function onRespond(FilterResponseEvent $event) { + public function onRespond(ResponseEvent $event) { $request = $event->getRequest(); $response = $event->getResponse(); diff --git a/tests/src/FunctionalJavascript/RssTypesTest.php b/tests/src/FunctionalJavascript/RssTypesTest.php index fd8c0f6..8f257e3 100644 --- a/tests/src/FunctionalJavascript/RssTypesTest.php +++ b/tests/src/FunctionalJavascript/RssTypesTest.php @@ -32,7 +32,7 @@ class RssTypesTest extends WebDriverTestBase { /** * {@inheritdoc} */ - protected function setUp() { + protected function setUp(): void { parent::setUp(); $admin_user = $this->drupalCreateUser([