Skip to content

Commit d9918df

Browse files
Solve static analysis (#940)
1 parent 109584c commit d9918df

4 files changed

Lines changed: 3 additions & 9 deletions

File tree

src/Block/Service/AbstractCategoriesBlockService.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,6 @@ public function execute(BlockContextInterface $blockContext, ?Response $response
5757

5858
$template = $blockContext->getTemplate();
5959

60-
\assert(\is_string($template));
61-
6260
return $this->renderResponse($template, [
6361
'context' => $blockContext,
6462
'settings' => $blockContext->getSettings(),

src/Block/Service/AbstractCollectionsBlockService.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,6 @@ public function execute(BlockContextInterface $blockContext, ?Response $response
6060

6161
$template = $blockContext->getTemplate();
6262

63-
\assert(\is_string($template));
64-
6563
return $this->renderResponse($template, [
6664
'context' => $blockContext,
6765
'settings' => $blockContext->getSettings(),

src/Block/Service/AbstractTagsBlockService.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,6 @@ public function execute(BlockContextInterface $blockContext, ?Response $response
6060

6161
$template = $blockContext->getTemplate();
6262

63-
\assert(\is_string($template));
64-
6563
return $this->renderResponse($template, [
6664
'context' => $blockContext,
6765
'settings' => $blockContext->getSettings(),

tests/App/AppKernel.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,6 @@ protected function configureRoutes(RoutingConfigurator $routes): void
7777
$routes->import(__DIR__.'/config/routes.yaml');
7878
}
7979

80-
/**
81-
* @psalm-suppress DeprecatedClass
82-
*/
8380
protected function configureContainer(ContainerBuilder $container, LoaderInterface $loader): void
8481
{
8582
$loader->load(__DIR__.'/config/config.yaml');
@@ -88,6 +85,9 @@ protected function configureContainer(ContainerBuilder $container, LoaderInterfa
8885
$loader->load(__DIR__.'/config/config_symfony_v5.yaml');
8986
}
9087

88+
/*
89+
* TODO: Remove when dropping support SonataBlock v4
90+
*/
9191
if (class_exists(HttpCacheHandler::class)) {
9292
$loader->load(__DIR__.'/config/config_sonata_block_v4.yaml');
9393
}

0 commit comments

Comments
 (0)