Skip to content

Commit 4ce12ae

Browse files
authored
Merge 5.x into 6.x
2 parents e9687a6 + f647b74 commit 4ce12ae

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

src/DependencyInjection/Configuration.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,14 +97,12 @@ public function getConfigTreeBuilder(): TreeBuilder
9797
->children()
9898
->arrayNode('types')
9999
->info('container service ids')
100-
->isRequired()
101100
// add default value to well know users of BlockBundle
102101
->defaultValue(['sonata.block.service.container', 'sonata.page.block.container', 'sonata.dashboard.block.container', 'cmf.block.container', 'cmf.block.slideshow'])
103102
->prototype('scalar')->end()
104103
->end()
105104
->arrayNode('templates')
106105
->info('container templates')
107-
->isRequired()
108106
->defaultValue($this->defaultContainerTemplates)
109107
->prototype('scalar')->end()
110108
->end()

tests/Command/DebugBlocksCommandTest.php

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,10 @@ protected function setUp(): void
4646
->method('getServices')
4747
->willReturn([]);
4848

49-
$this->application->add(new DebugBlocksCommand($blockManager));
49+
/** @phpstan-ignore function.impossibleType */
50+
$method = method_exists($this->application, 'addCommand') ? 'addCommand' : 'add';
51+
/* @phpstan-ignore method.notFound,method.dynamicName */
52+
$this->application->{$method}(new DebugBlocksCommand($blockManager));
5053
}
5154

5255
protected function tearDown(): void
@@ -110,7 +113,10 @@ public function getMetadata(): MetadataInterface
110113
},
111114
]);
112115

113-
$this->application->add(new DebugBlocksCommand($blockManager));
116+
/** @phpstan-ignore function.impossibleType */
117+
$method = method_exists($this->application, 'addCommand') ? 'addCommand' : 'add';
118+
/* @phpstan-ignore method.notFound,method.dynamicName */
119+
$this->application->{$method}(new DebugBlocksCommand($blockManager));
114120

115121
$command = $this->application->find('debug:sonata:block');
116122
$commandTester = new CommandTester($command);

0 commit comments

Comments
 (0)