diff --git a/composer.json b/composer.json index 29a34b747..b1992a42b 100644 --- a/composer.json +++ b/composer.json @@ -60,7 +60,7 @@ "psalm/plugin-phpunit": "^0.18", "psalm/plugin-symfony": "^5.0", "rector/rector": "^0.18", - "sonata-project/block-bundle": "^4.2", + "sonata-project/block-bundle": "^5.0", "sonata-project/entity-audit-bundle": "^1.1", "symfony/browser-kit": "^5.4 || ^6.2", "symfony/css-selector": "^5.4 || ^6.2", diff --git a/src/Block/AuditBlockService.php b/src/Block/AuditBlockService.php index bede6cafa..a5c39d7d8 100644 --- a/src/Block/AuditBlockService.php +++ b/src/Block/AuditBlockService.php @@ -35,7 +35,6 @@ public function __construct( public function execute(BlockContextInterface $blockContext, ?Response $response = null): Response { $template = $blockContext->getTemplate(); - \assert(null !== $template); $limit = $blockContext->getSetting('limit'); \assert(\is_int($limit)); diff --git a/tests/Block/AuditBlockServiceTest.php b/tests/Block/AuditBlockServiceTest.php index 595812ac1..0e03291e3 100644 --- a/tests/Block/AuditBlockServiceTest.php +++ b/tests/Block/AuditBlockServiceTest.php @@ -86,11 +86,8 @@ public function testDefaultSettings(): void self::assertSettings([ 'attr' => [], - 'extra_cache_keys' => [], 'limit' => 10, 'template' => '@SonataDoctrineORMAdmin/Block/block_audit.html.twig', - 'ttl' => 0, - 'use_cache' => true, ], $blockContext); } }